Skip to content

Commit 665bd6e

Browse files
authored
Change more references to left/right in tests (#265)
The issue #235 has the context for this change and the suggested naming. This closes #235
1 parent ea379cb commit 665bd6e

11 files changed

Lines changed: 1481 additions & 1481 deletions

tests/test_aampi.py

Lines changed: 414 additions & 414 deletions
Large diffs are not rendered by default.

tests/test_chains.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@
1515
@pytest.mark.parametrize("Value, IR, IL", test_data)
1616
def test_atsc(Value, IR, IL):
1717
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)
2121

2222

2323
@pytest.mark.parametrize("Value, IR, IL", test_data)
2424
def test_allc(Value, IR, IL):
2525
j = 2
26-
S_left = [
26+
S_ref = [
2727
np.array([1, 7, 11], dtype=np.int64),
2828
np.array([0], dtype=np.int64),
2929
np.array([3], dtype=np.int64),
3030
np.array([9], dtype=np.int64),
3131
np.array([2, 4, 6, 8, 10], dtype=np.int64),
3232
np.array([5], dtype=np.int64),
3333
]
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)
3636

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)))
3939

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

Comments
 (0)