Skip to content

Commit

Permalink
Fix another missing class of filenames()
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Mar 18, 2015
1 parent c9af8d9 commit 08bec47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chess/syzygy.py
Expand Up @@ -299,7 +299,7 @@ def filenames():

for i in range(1, 6):
for j in range(i, 6):
for k in range(j, 6):
for k in range(i, 6):
for l in range(j if i == k else k, 6):
yield "K%c%cvK%c%c" % (PCHR[i], PCHR[j], PCHR[k], PCHR[l])

Expand Down
6 changes: 5 additions & 1 deletion test.py
Expand Up @@ -1400,7 +1400,11 @@ def test_calc_key(self):

def test_filenames(self):
self.assertTrue("KPPvKN" in chess.syzygy.filenames())
self.assertTrue("KPPPvKN" in chess.syzygy.filenames())
self.assertTrue("KNNPvKN" in chess.syzygy.filenames())
self.assertTrue("KQRNvKR" in chess.syzygy.filenames())
self.assertTrue("KRRRvKR" in chess.syzygy.filenames())
self.assertTrue("KRRvKRR" in chess.syzygy.filenames())
self.assertTrue("KRNvKRP" in chess.syzygy.filenames())

def test_probe_pawnless_wdl_table(self):
wdl = chess.syzygy.WdlTable("data/syzygy", "KBNvK")
Expand Down

0 comments on commit 08bec47

Please sign in to comment.