(N=1)
| 160 | |
| 161 | |
| 162 | def test_manhattan(N=1): |
| 163 | np.random.seed(12345) |
| 164 | i = 0 |
| 165 | while i < N: |
| 166 | N = np.random.randint(1, 100) |
| 167 | x = np.random.rand(N) |
| 168 | y = np.random.rand(N) |
| 169 | mine = manhattan(x, y) |
| 170 | theirs = scipy.spatial.distance.cityblock(x, y) |
| 171 | np.testing.assert_almost_equal(mine, theirs) |
| 172 | print("PASSED") |
| 173 | i += 1 |
| 174 | |
| 175 | |
| 176 | ####################################################################### |
nothing calls this directly
no test coverage detected