Skip to content

Commit 7edd956

Browse files
committed
fix test failed.
1 parent 61a93c1 commit 7edd956

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

hbbrain/tests/test_matrix_transformation.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@ def test_split_matrix_sorted_min():
5959
[2 , 4 , 0.1],
6060
[1 , 2 , 0.1],
6161
[0 , 4 , 0.1]])
62-
expected_res_1 = np.array([[0 , 3 , 0.6],
63-
[1 , 4 , 0.6],
64-
[0 , 2 , 0.4],
65-
[3 , 4 , 0.4],
66-
[2 , 3 , 0.3],
67-
[0 , 1 , 0.2],
68-
[1 , 3 , 0.2],
69-
[1 , 2 , 0.1],
70-
[2 , 4 , 0.1],
71-
[0 , 4 , 0.1]])
72-
assert np.array_equal(split_max, expected_res) or np.array_equal(split_max, expected_res_1)
62+
expected_res_1 = np.array([[0. , 3. , 0.6],
63+
[1. , 4. , 0.6],
64+
[0. , 2. , 0.4],
65+
[3. , 4. , 0.4],
66+
[2. , 3. , 0.3],
67+
[0. , 1. , 0.2],
68+
[1. , 3. , 0.2],
69+
[2. , 4. , 0.1],
70+
[1. , 2. , 0.1],
71+
[0. , 4. , 0.1]])
72+
assert (np.array_equal(split_max, expected_res) or np.array_equal(split_max, expected_res_1))
7373

7474

7575
def test_split_matrix_sorted_max():
@@ -89,12 +89,13 @@ def test_split_matrix_sorted_max():
8989
[0 , 3 , 0.6],
9090
[2 , 3 , 0.6],
9191
[0 , 2 , 0.5],
92-
[1 , 3 , 0.4],
9392
[2 , 4 , 0.4],
94-
[0 , 1 , 0.3],
93+
[1 , 3 , 0.4],
9594
[1 , 2 , 0.3],
95+
[0 , 1 , 0.3],
9696
[0 , 4 , 0.2]])
97-
assert np.array_equal(split_max, expected_res) or np.array_equal(split_max, expected_res_1)
97+
98+
assert (np.array_equal(split_max, expected_res) or np.array_equal(split_max, expected_res_1))
9899

99100

100101
def test_hashing():

0 commit comments

Comments
 (0)