MCPcopy Index your code
hub / github.com/expr-lang/expr / TestSequenceMatcherRatio

Function TestSequenceMatcherRatio

internal/difflib/difflib_test.go:33–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

31}
32
33func TestSequenceMatcherRatio(t *testing.T) {
34 s := NewMatcher(splitChars("abcd"), splitChars("bcde"))
35 assertEqual(t, s.Ratio(), 0.75)
36 assertEqual(t, s.QuickRatio(), 0.75)
37 assertEqual(t, s.RealQuickRatio(), 1.0)
38}
39
40func TestGetOptCodes(t *testing.T) {
41 a := "qabxcd"

Callers

nothing calls this directly

Calls 6

NewMatcherFunction · 0.85
splitCharsFunction · 0.85
assertEqualFunction · 0.85
RatioMethod · 0.80
QuickRatioMethod · 0.80
RealQuickRatioMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…