(N=1)
| 146 | |
| 147 | |
| 148 | def test_chebyshev(N=1): |
| 149 | np.random.seed(12345) |
| 150 | i = 0 |
| 151 | while i < N: |
| 152 | N = np.random.randint(1, 100) |
| 153 | x = np.random.rand(N) |
| 154 | y = np.random.rand(N) |
| 155 | mine = chebyshev(x, y) |
| 156 | theirs = scipy.spatial.distance.chebyshev(x, y) |
| 157 | np.testing.assert_almost_equal(mine, theirs) |
| 158 | print("PASSED") |
| 159 | i += 1 |
| 160 | |
| 161 | |
| 162 | def test_manhattan(N=1): |
nothing calls this directly
no test coverage detected