From 952329dc61a135a1ee1a7c65360f1c1652df55e8 Mon Sep 17 00:00:00 2001 From: Max Mihailescu Date: Wed, 18 Mar 2020 19:53:18 +0100 Subject: [PATCH] Fixed issue #147 --- tests/test_chains.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_chains.py b/tests/test_chains.py index 208225b68..1f5d16060 100644 --- a/tests/test_chains.py +++ b/tests/test_chains.py @@ -33,5 +33,9 @@ def test_allc(Value, IR, IL): ] C_left = np.array([2, 4, 6, 8, 10], dtype=np.int64) S_right, C_right = allc(IL, IR) + + S_left = sorted(S_left, key=lambda x: (len(x), list(x))) + S_right = sorted(S_right, key=lambda x: (len(x), list(x))) + npt.assert_equal(S_left, S_right) npt.assert_equal(C_left, C_right)