MCPcopy Index your code
hub / github.com/EngoEngine/engo / TestPointPointMultiplication

Function TestPointPointMultiplication

math_test.go:68–79  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func TestPointPointMultiplication(t *testing.T) {
69 a := Point{10, 2}
70 b := Point{5, 6}
71 a.Multiply(b)
72 if a.X != 50 {
73 t.Errorf("a.X should equal 50 not %v", a.X)
74 }
75
76 if a.Y != 12 {
77 t.Errorf("a.Y should equal 12 not %v", a.Y)
78 }
79}
80
81func TestPointScalarAddition(t *testing.T) {
82 a := Point{2, 4}

Callers

nothing calls this directly

Calls 1

MultiplyMethod · 0.95

Tested by

no test coverage detected