|
15 | 15 | @pytest.mark.parametrize("Value, IR, IL", test_data) |
16 | 16 | def test_atsc(Value, IR, IL): |
17 | 17 | j = 2 |
18 | | - left = np.array([2, 4, 6, 8, 10], np.int64) |
19 | | - right = atsc(IL, IR, j) |
20 | | - npt.assert_equal(left, right) |
| 18 | + ref = np.array([2, 4, 6, 8, 10], np.int64) |
| 19 | + comp = atsc(IL, IR, j) |
| 20 | + npt.assert_equal(ref, comp) |
21 | 21 |
|
22 | 22 |
|
23 | 23 | @pytest.mark.parametrize("Value, IR, IL", test_data) |
24 | 24 | def test_allc(Value, IR, IL): |
25 | 25 | j = 2 |
26 | | - S_left = [ |
| 26 | + S_ref = [ |
27 | 27 | np.array([1, 7, 11], dtype=np.int64), |
28 | 28 | np.array([0], dtype=np.int64), |
29 | 29 | np.array([3], dtype=np.int64), |
30 | 30 | np.array([9], dtype=np.int64), |
31 | 31 | np.array([2, 4, 6, 8, 10], dtype=np.int64), |
32 | 32 | np.array([5], dtype=np.int64), |
33 | 33 | ] |
34 | | - C_left = np.array([2, 4, 6, 8, 10], dtype=np.int64) |
35 | | - S_right, C_right = allc(IL, IR) |
| 34 | + C_ref = np.array([2, 4, 6, 8, 10], dtype=np.int64) |
| 35 | + S_comp, C_comp = allc(IL, IR) |
36 | 36 |
|
37 | | - S_left = sorted(S_left, key=lambda x: (len(x), list(x))) |
38 | | - S_right = sorted(S_right, key=lambda x: (len(x), list(x))) |
| 37 | + S_ref = sorted(S_ref, key=lambda x: (len(x), list(x))) |
| 38 | + S_comp = sorted(S_comp, key=lambda x: (len(x), list(x))) |
39 | 39 |
|
40 | | - npt.assert_equal(S_left, S_right) |
41 | | - npt.assert_equal(C_left, C_right) |
| 40 | + npt.assert_equal(S_ref, S_comp) |
| 41 | + npt.assert_equal(C_ref, C_comp) |
0 commit comments