Skip to content

Commit

Permalink
Drop 8 and 9 card testing cases
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryRLee committed May 3, 2024
1 parent 1bc79a2 commit 20a085e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions python/tests/table_tests/test_dptables.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestSuitsTable(unittest.TestCase):

@classmethod
def setUpClass(cls) -> None:
for k in [5, 6, 7, 8, 9]:
for k in [5, 6, 7]:
cls.update_k(cls.DP, k)

@staticmethod
Expand All @@ -33,14 +33,6 @@ def update_k(table: list[int], k: int) -> None:
0x1 * cnts[0] + 0x8 * cnts[1] + 0x40 * cnts[2] + 0x200 * cnts[3]
)

# TODO(@ohwi): Check these cases:
# https://github.com/HenryRLee/PokerHandEvaluator/issues/93
# There exist three cases that idxes are same.
# For two different cnts in case of k=9.
# The cases are 72, 520, 576.
if idx in [72, 520, 576] and SUITS[idx] != suit + 1:
continue

table[idx] = suit + 1

def test_suits_table(self) -> None:
Expand Down

0 comments on commit 20a085e

Please sign in to comment.