mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-04 06:54:28 +01:00
ebiten: Refactoring: Move a test
This commit is contained in:
parent
415ceded79
commit
a29748ab2b
@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -2426,13 +2426,3 @@ func BenchmarkColorMScale(b *testing.B) {
|
|||||||
dst.DrawImage(src, op)
|
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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user