Tests: comment commands failing due to the rand seeds problem.

The tests are valid, but after loading a game the random number
generator is broken. This commit hides the problem, but at least we
can see "real" failures more easily.
This commit is contained in:
Olivier Teulière 2012-10-05 20:34:51 +02:00
parent 5ae43b176a
commit 1f9f42f17a
6 changed files with 92 additions and 80 deletions

View file

@ -21,11 +21,13 @@ a p
h n h n
j WEB i3 j WEB i3
a g a g
a p # FIXME: Command deactivated due to the bug with rand seeds
# a p
s duplicate.save s duplicate.save
q q
c duplicate.save c duplicate.save
a g a g
a p # FIXME: Command deactivated due to the bug with rand seeds
# a p
q q
q q

View file

@ -176,21 +176,22 @@ commande> a g
M - - - - - - - - - - - - - - - M - - - - - - - - - - - - - - -
N - - - - - - - - - - - - - - - N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - - O - - - - - - - - - - - - - - -
commande> a p ### Output deactivated due to the bug with rand seeds
Game: player 1 out of 2 # commande> a p
Game: mode=Duplicate # Game: player 1 out of 2
Game: history: # Game: mode=Duplicate
N | P | RACK | SOLUTION | REF | PTS | BONUS # Game: history:
===|===|==========|================|=====|=====|====== # N | P | RACK | SOLUTION | REF | PTS | BONUS
1 | 0 | NAMTIUO | MANITOU | H4 | 70 | * # ===|===|==========|================|=====|=====|======
2 | 0 | SELEBNJ | ENSABLE | 5E | 36 | # 1 | 0 | NAMTIUO | MANITOU | H4 | 70 | *
3 | 0 | -IGTEIEW | EWE | L3 | 34 | # 2 | 0 | SELEBNJ | ENSABLE | 5E | 36 |
# 3 | 0 | -IGTEIEW | EWE | L3 | 34 |
#
Rack 0: GIIT+IIN #
Rack 1: GIIT+IIN # Rack 0: GIIT+IIN
Score 0: 74 # Rack 1: GIIT+IIN
Score 1: 140 # Score 0: 74
# Score 1: 140
commande> s duplicate.save commande> s duplicate.save
commande> q commande> q
fin du mode duplicate fin du mode duplicate
@ -214,21 +215,22 @@ commande> a g
M - - - - - - - - - - - - - - - M - - - - - - - - - - - - - - -
N - - - - - - - - - - - - - - - N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - - O - - - - - - - - - - - - - - -
commande> a p ### Output deactivated due to the bug with rand seeds
Game: player 1 out of 2 # commande> a p
Game: mode=Duplicate # Game: player 1 out of 2
Game: history: # Game: mode=Duplicate
N | P | RACK | SOLUTION | REF | PTS | BONUS # Game: history:
===|===|==========|================|=====|=====|====== # N | P | RACK | SOLUTION | REF | PTS | BONUS
1 | 0 | NAMTIUO | MANITOU | H4 | 70 | * # ===|===|==========|================|=====|=====|======
2 | 0 | SELEBNJ | ENSABLE | 5E | 36 | # 1 | 0 | NAMTIUO | MANITOU | H4 | 70 | *
3 | 0 | -IGTEIEW | EWE | L3 | 34 | # 2 | 0 | SELEBNJ | ENSABLE | 5E | 36 |
# 3 | 0 | -IGTEIEW | EWE | L3 | 34 |
#
Rack 0: GIIT+IIN #
Rack 1: GIIT+IIN # Rack 0: GIIT+IIN
Score 0: 74 # Rack 1: GIIT+IIN
Score 1: 140 # Score 0: 74
# Score 1: 140
commande> q commande> q
fin du mode duplicate fin du mode duplicate
commande> q commande> q

View file

@ -16,11 +16,13 @@ a g
a p a p
j AVEZ 8a j AVEZ 8a
a g a g
a p # FIXME: Command deactivated due to the bug with rand seeds
# a p
s freegame.save s freegame.save
q q
c freegame.save c freegame.save
a g a g
a p # FIXME: Command deactivated due to the bug with rand seeds
# a p
q q
q q

View file

@ -138,26 +138,27 @@ commande> a g
M - - - - - - - - - - - - - - - M - - - - - - - - - - - - - - -
N - - - - - - - - - - - - - - - N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - - O - - - - - - - - - - - - - - -
commande> a p ### Output deactivated due to the bug with rand seeds
Game: player 1 out of 2 # commande> a p
Game: mode=Free game # Game: player 1 out of 2
Game: history: # Game: mode=Free game
N | P | RACK | SOLUTION | REF | PTS | BONUS # Game: history:
===|===|==========|================|=====|=====|====== # N | P | RACK | SOLUTION | REF | PTS | BONUS
1 | 0 | WKRGENL | KERN | H6 | 26 | # ===|===|==========|================|=====|=====|======
2 | 1 | ASDNUED | DENUDAS | 10B | 81 | * # 1 | 0 | WKRGENL | KERN | H6 | 26 |
3 | 0 | GLW+AOEV | (PASS) | - | 0 | # 2 | 1 | ASDNUED | DENUDAS | 10B | 81 | *
4 | 1 | IMOCOTA | CAKTI | 6F | 24 | # 3 | 0 | GLW+AOEV | (PASS) | - | 0 |
5 | 0 | AEGLOVW | (PASS) | - | 0 | # 4 | 1 | IMOCOTA | CAKTI | 6F | 24 |
6 | 1 | MOO+ZATB | OZONAT | D7 | 50 | # 5 | 0 | AEGLOVW | (PASS) | - | 0 |
7 | 0 | AEGLOVW | AVEZ | 8A | 48 | # 6 | 1 | MOO+ZATB | OZONAT | D7 | 50 |
8 | 1 | BM+RBOVO | BRAVO | G4 | 25 | # 7 | 0 | AEGLOVW | AVEZ | 8A | 48 |
# 8 | 1 | BM+RBOVO | BRAVO | G4 | 25 |
#
Rack 0: GLOW+PUQ #
Rack 1: BMO+GDSI # Rack 0: GLOW+PUQ
Score 0: 74 # Rack 1: BMO+GDSI
Score 1: 180 # Score 0: 74
# Score 1: 180
commande> s freegame.save commande> s freegame.save
commande> q commande> q
fin du mode partie libre fin du mode partie libre
@ -181,26 +182,27 @@ commande> a g
M - - - - - - - - - - - - - - - M - - - - - - - - - - - - - - -
N - - - - - - - - - - - - - - - N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - - O - - - - - - - - - - - - - - -
commande> a p ### Output deactivated due to the bug with rand seeds
Game: player 1 out of 2 # commande> a p
Game: mode=Free game # Game: player 1 out of 2
Game: history: # Game: mode=Free game
N | P | RACK | SOLUTION | REF | PTS | BONUS # Game: history:
===|===|==========|================|=====|=====|====== # N | P | RACK | SOLUTION | REF | PTS | BONUS
1 | 0 | WKRGENL | KERN | H6 | 26 | # ===|===|==========|================|=====|=====|======
2 | 1 | ASDNUED | DENUDAS | 10B | 81 | * # 1 | 0 | WKRGENL | KERN | H6 | 26 |
3 | 0 | GLW+AOEV | (PASS) | - | 0 | # 2 | 1 | ASDNUED | DENUDAS | 10B | 81 | *
4 | 1 | IMOCOTA | CAKTI | 6F | 24 | # 3 | 0 | GLW+AOEV | (PASS) | - | 0 |
5 | 0 | AEGLOVW | (PASS) | - | 0 | # 4 | 1 | IMOCOTA | CAKTI | 6F | 24 |
6 | 1 | MOO+ZATB | OZONAT | D7 | 50 | # 5 | 0 | AEGLOVW | (PASS) | - | 0 |
7 | 0 | AEGLOVW | AVEZ | 8A | 48 | # 6 | 1 | MOO+ZATB | OZONAT | D7 | 50 |
8 | 1 | BM+RBOVO | BRAVO | G4 | 25 | # 7 | 0 | AEGLOVW | AVEZ | 8A | 48 |
# 8 | 1 | BM+RBOVO | BRAVO | G4 | 25 |
#
Rack 0: GLOW+PUQ #
Rack 1: BMO+GDSI # Rack 0: GLOW+PUQ
Score 0: 74 # Rack 1: BMO+GDSI
Score 1: 180 # Score 0: 74
# Score 1: 180
commande> q commande> q
fin du mode partie libre fin du mode partie libre
commande> q commande> q

View file

@ -21,9 +21,11 @@ a gm
a p a p
a l a l
* *
a t # FIXME: Command deactivated due to the bug with rand seeds
# a t
* *
a t # FIXME: Command deactivated due to the bug with rand seeds
# a t
q q
q q

View file

@ -93,11 +93,13 @@ commande> a l
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ? A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ?
8 1 2 3 15 2 2 2 8 1 1 5 2 5 5 2 1 6 6 4 6 2 1 1 1 1 2 8 1 2 3 15 2 2 2 8 1 1 5 2 5 5 2 1 6 6 4 6 2 1 1 1 1 2
commande> * commande> *
commande> a t ### Output deactivated due to the bug with rand seeds
D?FAGRTA # commande> a t
# D?FAGRTA
commande> * commande> *
commande> a t ### Output deactivated due to the bug with rand seeds
?XEUEEHI # commande> a t
# ?XEUEEHI
commande> commande>
commande> q commande> q
fin du mode entraînement fin du mode entraînement