1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Add a passing test for FC-Pro 6E9.

This commit is contained in:
Shlomi Fish 2016-11-08 16:21:02 +02:00
parent 95dd1e40b4
commit 95a71aa36b

View file

@ -557,7 +557,7 @@ class Game:
def shlomif_main(args):
plan(4)
plan(5)
rand = constructRandom('24')
game = Game("freecell", rand, True)
@ -623,5 +623,21 @@ KC JS 9H 4S 7S AD
'Microsoft Deal #3E9 - long seed.',
);
rand = constructRandom('ms6000000000')
game = Game("freecell", rand, True)
# TEST
got_s = game.print_layout()
ok (got_s == '''2D 2C QS 8D KD 8C 4C
3D AH 2H 4H TS 6H QD
4D JS AD 6S JH JC JD
KH 3H KS AS TC 5D AC
TD 7C 9C 7H 3C 3S
QH 9H 9D 5S 7S 6C
5C 5H 2S KC 9S 4S
6D QC 8S TH 7D 8H
''',
'Microsoft Deal #6E9 - extra long seed.',
);
if __name__ == "__main__":
sys.exit(shlomif_main(sys.argv))