(self)
| 1207 | assert_array_almost_equal(actual, desired, decimal=14) |
| 1208 | |
| 1209 | def test_uniform(self): |
| 1210 | random.seed(self.seed) |
| 1211 | actual = random.uniform(low=1.23, high=10.54, size=(3, 2)) |
| 1212 | desired = np.array([[6.99097932346268003, 6.73801597444323974], |
| 1213 | [9.50364421400426274, 9.53130618907631089], |
| 1214 | [5.48995325769805476, 8.47493103280052118]]) |
| 1215 | assert_array_almost_equal(actual, desired, decimal=15) |
| 1216 | |
| 1217 | def test_uniform_range_bounds(self): |
| 1218 | fmin = np.finfo('float').min |
nothing calls this directly
no test coverage detected