mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Add a test.
This commit is contained in:
parent
c0bb252166
commit
ca758a3a57
1 changed files with 6 additions and 1 deletions
|
@ -11,7 +11,7 @@ from pysollib.hint import Base_Solver_Hint
|
||||||
|
|
||||||
def shlomif_main(args):
|
def shlomif_main(args):
|
||||||
|
|
||||||
plan(1)
|
plan(2)
|
||||||
|
|
||||||
card = AbstractCard(1001, 0, 3, 7, 3001)
|
card = AbstractCard(1001, 0, 3, 7, 3001)
|
||||||
h = Base_Solver_Hint(None, None, base_rank=0)
|
h = Base_Solver_Hint(None, None, base_rank=0)
|
||||||
|
@ -21,6 +21,11 @@ def shlomif_main(args):
|
||||||
if not ok(got == 'D-8', 'card2str2 works'):
|
if not ok(got == 'D-8', 'card2str2 works'):
|
||||||
diag('got == ' + got)
|
diag('got == ' + got)
|
||||||
|
|
||||||
|
got = h.card2str1(card)
|
||||||
|
# TEST
|
||||||
|
if not ok(got == '8D', 'card2str1 works'):
|
||||||
|
diag('got == ' + got)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
sys.exit(shlomif_main(sys.argv))
|
sys.exit(shlomif_main(sys.argv))
|
||||||
|
|
Loading…
Add table
Reference in a new issue