ebiten: Refactoring: Move a test

This commit is contained in:
Hajime Hoshi 2021-08-18 01:13:40 +09:00
parent 415ceded79
commit a29748ab2b
2 changed files with 10 additions and 10 deletions

View File

@ -234,3 +234,13 @@ func TestColorMApply(t *testing.T) {
}
}
}
// #1765
func TestColorMConcat(t *testing.T) {
var a, b ColorM
a.SetElement(1, 2, -1)
a.Concat(b)
if got, want := a.Element(1, 2), -1.0; got != want {
t.Errorf("got: %f, want: %f", got, want)
}
}

View File

@ -2426,13 +2426,3 @@ func BenchmarkColorMScale(b *testing.B) {
dst.DrawImage(src, op)
}
}
// #1765
func TestColorMConcat(t *testing.T) {
var a, b ColorM
a.SetElement(1, 2, -1)
a.Concat(b)
if got, want := a.Element(1, 2), -1.0; got != want {
t.Errorf("got: %f, want: %f", got, want)
}
}