gilo/internal/gilo/point_test.go
Timothy J Warren fe1c54317e
Some checks failed
timw4mail/gilo/pipeline/head There was a failure building this commit
Fix CI build?
2021-04-12 12:52:20 -04:00

20 lines
327 B
Go

package gilo
import "testing"
func TestDefaultPoint(t *testing.T) {
point := DefaultPoint()
if point.X != 0 || point.Y != 0 {
t.Errorf("Failure to create proper Point")
}
}
func TestNewPoint(t *testing.T) {
point := NewPoint(3, 5)
if point.X != 3 || point.Y != 5 {
t.Errorf("Failure to create proper Point")
}
}