(t *testing.T)
| 280 | } |
| 281 | |
| 282 | func TestDiffBisectSplit(t *testing.T) { |
| 283 | type TestCase struct { |
| 284 | Text1 string |
| 285 | Text2 string |
| 286 | } |
| 287 | |
| 288 | dmp := New() |
| 289 | |
| 290 | for _, tc := range []TestCase{ |
| 291 | {"STUV\x05WX\x05YZ\x05[", "WĺĻļ\x05YZ\x05ĽľĿŀZ"}, |
| 292 | } { |
| 293 | diffs := dmp.diffBisectSplit([]rune(tc.Text1), |
| 294 | []rune(tc.Text2), 7, 6, time.Now().Add(time.Hour)) |
| 295 | |
| 296 | for _, d := range diffs { |
| 297 | assert.True(t, utf8.ValidString(d.Text)) |
| 298 | } |
| 299 | |
| 300 | // TODO define the expected outcome |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | func TestDiffLinesToChars(t *testing.T) { |
| 305 | type TestCase struct { |
nothing calls this directly
no test coverage detected