(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func TestPointDistance(t *testing.T) { |
| 63 | p := Point{1, 1} |
| 64 | equation := [3]float64{4, 3, 1} |
| 65 | var wantedDistance float64 = 1.6 |
| 66 | var calculatedDistance float64 = PointDistance(&p, equation) |
| 67 | if calculatedDistance != wantedDistance { |
| 68 | t.Fatalf("Failed to calculate Point Distance.") |
| 69 | } |
| 70 | } |
nothing calls this directly
no test coverage detected