Some checks failed
timw4mail/gilo/pipeline/head There was a failure building this commit
20 lines
327 B
Go
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")
|
|
}
|
|
}
|