(t *testing.T)
| 168 | } |
| 169 | |
| 170 | func TestWithAsciiOnDelete(t *testing.T) { |
| 171 | sm := NewMatcher(splitChars(rep("a", 40)+"c"+rep("b", 40)), |
| 172 | splitChars(rep("a", 40)+rep("b", 40))) |
| 173 | assertAlmostEqual(t, sm.Ratio(), 0.994, 3) |
| 174 | assertEqual(t, sm.GetOpCodes(), |
| 175 | []OpCode{{'e', 0, 40, 0, 40}, {'d', 40, 41, 40, 40}, {'e', 41, 81, 40, 80}}) |
| 176 | } |
| 177 | |
| 178 | func TestWithAsciiBJunk(t *testing.T) { |
| 179 | isJunk := func(s string) bool { |
nothing calls this directly
no test coverage detected