MCPcopy Create free account
hub / github.com/cogentcore/core / TestSFBugsRatioForNullSeqn

Function TestSFBugsRatioForNullSeqn

texteditor/difflib/difflib_test.go:268–273  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

266}
267
268func TestSFBugsRatioForNullSeqn(t *testing.T) {
269 sm := NewMatcher(nil, nil)
270 assertEqual(t, sm.Ratio(), 1.0)
271 assertEqual(t, sm.QuickRatio(), 1.0)
272 assertEqual(t, sm.RealQuickRatio(), 1.0)
273}
274
275func TestSFBugsComparingEmptyLists(t *testing.T) {
276 groups := NewMatcher(nil, nil).GetGroupedOpCodes(-1)

Callers

nothing calls this directly

Calls 5

NewMatcherFunction · 0.70
assertEqualFunction · 0.70
RatioMethod · 0.45
QuickRatioMethod · 0.45
RealQuickRatioMethod · 0.45

Tested by

no test coverage detected