From fd5ad8990f2e6b368c5105897966de08c5bacfe4 Mon Sep 17 00:00:00 2001 From: Mian Asbat ahmad Date: Thu, 2 May 2019 11:11:45 +0100 Subject: [PATCH] Issue #16: Test case updated for x_values --- tests/algorithms/test_pivot.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/algorithms/test_pivot.py b/tests/algorithms/test_pivot.py index 0d872f7..a125347 100644 --- a/tests/algorithms/test_pivot.py +++ b/tests/algorithms/test_pivot.py @@ -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(): -- 2.24.1