(t *testing.T)
| 2603 | } |
| 2604 | |
| 2605 | func TestDiffEmptyCases(t *testing.T) { |
| 2606 | Equal(t, "", diff(nil, nil)) |
| 2607 | Equal(t, "", diff(struct{ foo string }{}, nil)) |
| 2608 | Equal(t, "", diff(nil, struct{ foo string }{})) |
| 2609 | Equal(t, "", diff(1, 2)) |
| 2610 | Equal(t, "", diff(1, 2)) |
| 2611 | Equal(t, "", diff([]int{1}, []bool{true})) |
| 2612 | } |
| 2613 | |
| 2614 | // Ensure there are no data races |
| 2615 | func TestDiffRace(t *testing.T) { |