(t *testing.T)
| 228 | } |
| 229 | |
| 230 | func 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 | |
| 238 | func TestWithAsciiBJunk(t *testing.T) { |
| 239 | isJunk := func(s string) bool { |
nothing calls this directly
no test coverage detected
searching dependent graphs…