Commit fd5ad899 authored by Mian Asbat ahmad's avatar Mian Asbat ahmad

Issue #16: Test case updated for x_values

parent 21421366
Pipeline #2153 failed with stages
in 11 minutes and 35 seconds
......@@ -43,12 +43,14 @@ def test_return_value():
matrices = np.concatenate(arrays)
numberOf4x4Matrices = int(matrices.size/16)
matrices4x4 = matrices.reshape(numberOf4x4Matrices, 4, 4)
residual_error, x_value_1, x_value_2, x_value_3, p_value_1, p_value_2, \
p_value_3 = p.pivot_calibration(matrices4x4)
x_values, residual_error =p.pivot_calibration(matrices4x4)
assert 1.838 == round(residual_error, 3)
assert -14.476 == round(x_value_1, 3)
assert 395.143 == round(x_value_2, 3)
assert -7.558 == round(x_value_3, 3)
assert -14.476 == round(x_values[0, 1])
assert 395.143 == round(x_values[0, 2])
assert -7.558 == round(x_values[0, 3])
assert -805.284 == round(x_values[0, 4])
assert -85.447 == round(x_values[0, 5])
assert -2112.066 == round(x_values[0, 6])
def test_rank_if_condition():
......
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