(t *testing.T)
| 49 | } |
| 50 | |
| 51 | func TestPathAppend(t *testing.T) { |
| 52 | test.T(t, MustParseSVGPath("M5 0L5 10").Append(nil), MustParseSVGPath("M5 0L5 10")) |
| 53 | test.T(t, (&Path{}).Append(MustParseSVGPath("M5 0L5 10")), MustParseSVGPath("M5 0L5 10")) |
| 54 | |
| 55 | p := MustParseSVGPath("M5 0L5 10").Append(MustParseSVGPath("M5 15L10 15")) |
| 56 | test.T(t, p, MustParseSVGPath("M5 0L5 10M5 15L10 15")) |
| 57 | |
| 58 | p = MustParseSVGPath("M5 0L5 10").Append(MustParseSVGPath("L10 15M20 15L25 15")) |
| 59 | test.T(t, p, MustParseSVGPath("M5 0L5 10M0 0L10 15M20 15L25 15")) |
| 60 | } |
| 61 | |
| 62 | func TestPathJoin(t *testing.T) { |
| 63 | var tests = []struct { |
nothing calls this directly
no test coverage detected