(t *testing.T)
| 44 | } |
| 45 | |
| 46 | func TestIsParallel(t *testing.T) { |
| 47 | l1 := Line{P1: Point{1, 2}, P2: Point{2, 4}} |
| 48 | l2 := Line{P1: Point{25, 50}, P2: Point{50, 100}} |
| 49 | if !IsParallel(&l1, &l2) { |
| 50 | t.Fatalf("Failed to check if Parallel.") |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func TestIsPerpendicular(t *testing.T) { |
| 55 | l1 := Line{P1: Point{1, 2}, P2: Point{2, 4}} |
nothing calls this directly
no test coverage detected