(t *testing.T)
| 276 | } |
| 277 | |
| 278 | func TestWithAsciiOnDelete(t *testing.T) { |
| 279 | sm := NewMatcher(splitChars(rep("a", 40)+"c"+rep("b", 40)), |
| 280 | splitChars(rep("a", 40)+rep("b", 40))) |
| 281 | assertAlmostEqual(t, sm.Ratio(), 0.994, 3) |
| 282 | assertEqual(t, sm.GetOpCodes(), |
| 283 | []OpCode{{'e', 0, 40, 0, 40}, {'d', 40, 41, 40, 40}, {'e', 41, 81, 40, 80}}) |
| 284 | } |
| 285 | |
| 286 | func TestWithAsciiBJunk(t *testing.T) { |
| 287 | isJunk := func(s []byte) bool { |
nothing calls this directly
no test coverage detected