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

Function TestWithAsciiOnDelete

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

Source from the content-addressed store, hash-verified

228}
229
230func TestWithAsciiOnDelete(t *testing.T) {
231 sm := NewMatcher(splitChars(rep("a", 40)+"c"+rep("b", 40)),
232 splitChars(rep("a", 40)+rep("b", 40)))
233 assertAlmostEqual(t, sm.Ratio(), 0.994, 3)
234 assertEqual(t, sm.GetOpCodes(),
235 []OpCode{{'e', 0, 40, 0, 40}, {'d', 40, 41, 40, 40}, {'e', 41, 81, 40, 80}})
236}
237
238func TestWithAsciiBJunk(t *testing.T) {
239 isJunk := func(s string) bool {

Callers

nothing calls this directly

Calls 7

NewMatcherFunction · 0.85
splitCharsFunction · 0.85
repFunction · 0.85
assertAlmostEqualFunction · 0.85
assertEqualFunction · 0.85
RatioMethod · 0.80
GetOpCodesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…