(c *C)
| 41 | } |
| 42 | |
| 43 | func (s *suiteCommon) TestAll(c *C) { |
| 44 | for i, t := range diffTests { |
| 45 | diffs := diff.Do(t.src, t.dst) |
| 46 | src := diff.Src(diffs) |
| 47 | dst := diff.Dst(diffs) |
| 48 | c.Assert(src, Equals, t.src, Commentf("subtest %d, src=%q, dst=%q, bad calculated src", i, t.src, t.dst)) |
| 49 | c.Assert(dst, Equals, t.dst, Commentf("subtest %d, src=%q, dst=%q, bad calculated dst", i, t.src, t.dst)) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | var doTests = [...]struct { |
| 54 | src, dst string |