Example #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')
Example #2
0
File: tests.py Project: ahd985/ssv
 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')
Example #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')
Example #4
0
File: tests.py Project: ahd985/ssv
 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')