MCPcopy
hub / github.com/tdewolff/canvas / TestPathSame

Function TestPathSame

path_test.go:40–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func TestPathSame(t *testing.T) {
41 test.That(t, MustParseSVGPath("L1 0L1 1L0 1z").Same(MustParseSVGPath("L0 1L1 1L1 0z")))
42}
43
44func TestPathClosed(t *testing.T) {
45 test.That(t, !MustParseSVGPath("M5 0L5 10").Closed())

Callers

nothing calls this directly

Calls 2

MustParseSVGPathFunction · 0.85
SameMethod · 0.80

Tested by

no test coverage detected