(t *testing.T)
| 34 | } |
| 35 | |
| 36 | func TestIntercept(t *testing.T) { |
| 37 | p := Point{0, 3} |
| 38 | var slope float64 = -5 |
| 39 | var wantedIntercept float64 = 3 |
| 40 | var calculatedIntercept float64 = YIntercept(&p, slope) |
| 41 | if calculatedIntercept != wantedIntercept { |
| 42 | t.Fatalf("Failed to calculate YIntercept.") |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func TestIsParallel(t *testing.T) { |
| 47 | l1 := Line{P1: Point{1, 2}, P2: Point{2, 4}} |
nothing calls this directly
no test coverage detected