(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestSubstract(t *testing.T) { |
| 73 | a := []float64{1, 1, 1, 1} |
| 74 | A := MakeMatrix(a, 2, 2) |
| 75 | B := MakeMatrix([]float64{2, 2, 2, 2}, 2, 2) |
| 76 | |
| 77 | B.substract(A) |
| 78 | if !FloatArrayEquals(A.Elements, B.Elements) { |
| 79 | t.Error() |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | func TestScale(t *testing.T) { |
| 84 | a := []float64{1, 1, 1, 1} |
nothing calls this directly
no test coverage detected