(t *testing.T)
| 238 | } |
| 239 | |
| 240 | func TestWithAsciiOnDelete(t *testing.T) { |
| 241 | sm := NewMatcher(splitChars(rep("a", 40)+"c"+rep("b", 40)), |
| 242 | splitChars(rep("a", 40)+rep("b", 40))) |
| 243 | assertAlmostEqual(t, sm.Ratio(), 0.994, 3) |
| 244 | assertEqual(t, sm.GetOpCodes(), |
| 245 | []OpCode{{'e', 0, 40, 0, 40}, {'d', 40, 41, 40, 40}, {'e', 41, 81, 40, 80}}) |
| 246 | } |
| 247 | |
| 248 | func TestWithAsciiBJunk(t *testing.T) { |
| 249 | isJunk := func(s string) bool { |
nothing calls this directly
no test coverage detected