vector/internal/math: Add tests

This commit is contained in:
Hajime Hoshi 2019-12-28 03:17:37 +09:00
parent 18b267fd4f
commit cb1dcc37a0

View File

@ -120,6 +120,15 @@ func TestTriangulate(t *testing.T) {
},
Out: nil,
},
{
In: []Point{
{0, 0},
{0.5, 0.5},
{1.5, 1.5},
{1, 1},
},
Out: nil,
},
{
In: []Point{
{0, 0},