mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
vector: bug fix: compile error for tests
This commit is contained in:
parent
34b8c5483a
commit
a9464c7d71
@ -30,7 +30,7 @@ func TestMain(m *testing.M) {
|
|||||||
// Issue #2589
|
// Issue #2589
|
||||||
func TestLine0(t *testing.T) {
|
func TestLine0(t *testing.T) {
|
||||||
dst := ebiten.NewImage(16, 16)
|
dst := ebiten.NewImage(16, 16)
|
||||||
vector.StrokeLine(dst, 0, 0, 0, 0, 2, color.White)
|
vector.StrokeLine(dst, 0, 0, 0, 0, 2, color.White, true)
|
||||||
if got, want := dst.At(0, 0), (color.RGBA{}); got != want {
|
if got, want := dst.At(0, 0), (color.RGBA{}); got != want {
|
||||||
t.Errorf("got: %v, want: %v", got, want)
|
t.Errorf("got: %v, want: %v", got, want)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user