Commit 11903a60 authored by rmapaah's avatar rmapaah

Issue #13: Unit test added

Unit test added to check the system exit case when range is less than 6
parent de9e35f1
......@@ -12,6 +12,16 @@ def test_empty_matrices4x4():
def test_range_le_six():
with pytest.raises(SystemExit):
file_names = glob('tests/algorithms/PivotCalibration/1378476416922755200.txt')
arrays = [np.loadtxt(f) for f in file_names]
matrices = np.concatenate(arrays)
numberOf4x4Matrices = int(matrices.size/16)
matrices4x4 = matrices.reshape(numberOf4x4Matrices, 4, 4)
def test_four_columns_matrices4x4():
with pytest.raises(ValueError):
p.pivot_calibration(np.arange(2, 11, dtype=float).reshape(3, 3))
......@@ -31,3 +41,5 @@ def test_return_value():
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment