Skip to content

Commit 066ee16

Browse files
author
grigory
committed
Fix incorrect tests
1 parent d85b459 commit 066ee16

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

python_polar_coding/tests/test_g_fast_ssc/test_node.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def test_g_repetition_one(self):
5252
GeneralizedFastSSCNode.G_REPETITION,
5353
)
5454

55-
expected_result = np.array([0, 0, 0, 1,
56-
0, 0, 0, 1,
57-
0, 0, 0, 1,
58-
0, 0, 0, 1, ])
55+
expected_result = np.array([0, 1, 0, 0,
56+
0, 1, 0, 0,
57+
0, 1, 0, 0,
58+
0, 1, 0, 0, ])
5959

6060
node.alpha = self.llr
6161
node.compute_leaf_beta()
@@ -75,10 +75,10 @@ def test_g_repetition_spc(self):
7575
GeneralizedFastSSCNode.G_REPETITION,
7676
)
7777

78-
expected_result = np.array([0, 0, 1, 1,
79-
0, 0, 1, 1,
80-
0, 0, 1, 1,
81-
0, 0, 1, 1, ])
78+
expected_result = np.array([1, 1, 0, 0,
79+
1, 1, 0, 0,
80+
1, 1, 0, 0,
81+
1, 1, 0, 0, ])
8282

8383
node.alpha = self.llr
8484
node.compute_leaf_beta()

0 commit comments

Comments
 (0)