mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
vector: bug fix: compile error for tests
This commit is contained in:
parent
83dfc12e49
commit
19bd785fc4
@ -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