Exemple #1
0
 def test_validate_array_slices_fail(self):
     arr = [np.random.rand(3, 3)] + [np.random.rand(5, 5)
                                     ] + [np.array([[1, 2], [1, 2, 3]])]
     with pytest.raises(ValueError):
         validate_array_slices(arr, 'float')
Exemple #2
0
 def test_validate_array_slices_fail(self):
     arr = [np.random.rand(3, 3)] + [np.random.rand(5, 5)] + [np.array([[1, 2],[1, 2, 3]])]
     with pytest.raises(ValueError):
         validate_array_slices(arr, 'float')
Exemple #3
0
 def test_validate_array_slices(self):
     arr = [np.random.rand(3, 3)] + [np.random.rand(5, 5)
                                     ] + [np.random.rand(7, 7)]
     validate_array_slices(arr, 'float')
Exemple #4
0
 def test_validate_array_slices(self):
     arr = [np.random.rand(3, 3)] + [np.random.rand(5, 5)] + [np.random.rand(7, 7)]
     validate_array_slices(arr, 'float')