mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-14 06:57:27 +01:00
16 lines
241 B
Go
16 lines
241 B
Go
|
package matrix_test
|
||
|
|
||
|
import (
|
||
|
. "."
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestColorIdentity(t *testing.T) {
|
||
|
matrix := IdentityColor()
|
||
|
got := matrix.IsIdentity()
|
||
|
want := true
|
||
|
if want != got {
|
||
|
t.Errorf("matrix.IsIdentity() = %t, want %t", got, want)
|
||
|
}
|
||
|
}
|