- adding regression test for Game::back() method

This commit is contained in:
Antoine Fraboulet 2005-12-27 01:04:49 +00:00
parent 1a69bd0fa9
commit e9dca4ea65
3 changed files with 157 additions and 1 deletions

View file

@ -23,7 +23,8 @@ training_bag 0 # randseed unused
training_search 0 # randseed unused
# Several ways of getting a rack and playing a word
training_play 4
# Training rack+search+play+back
training_back 5
#
# Duplicate mode

26
test/training_back.input Normal file
View file

@ -0,0 +1,26 @@
e
*
a t
r
n 1
+
a t
r
a r
n 2
a g
n -1
a g
a p
n -1
a p
a g
a l
n -1
*
r
n 1
a l
a p
q
q

129
test/training_back.ref Normal file
View file

@ -0,0 +1,129 @@
[?] pour l'aide
commande> e
mode entraînement
[?] pour l'aide
commande> *
commande> a t
EA?AEBF
commande> r
commande> n 1
commande> +
commande> a t
LMUAEYE
commande> r
commande> a r
1: YEBLE 38 6F
2: BAYLE 36 6H
3: AMYLE 35 10D
4: ELYME 35 10H
5: BAYE 35 6H
6: ELYME 35 10D
7: LAYEE 34 10D
8: BEY 34 6H
9: YUE 32 10F
10: AMYLE 30 5H
commande> n 2
commande> a g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
A - - - - - - - - - - - - - - -
B - - - - - - - - - - - - - - -
C - - - - - - - - - - - - - - -
D - - - - - - - - - - - - - - -
E - - - - - - - - - - - - - - -
F - - - - - - - - - - - - - - -
G - - - - - - - - - - - - - - -
H - - - F A B A c E E - - - - -
I - - - - - A - - - - - - - - -
J - - - - - Y - - - - - - - - -
K - - - - - L - - - - - - - - -
L - - - - - E - - - - - - - - -
M - - - - - - - - - - - - - - -
N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - -
commande> n -1
commande> a g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
A - - - - - - - - - - - - - - -
B - - - - - - - - - - - - - - -
C - - - - - - - - - - - - - - -
D - - - - - - - - - - - - - - -
E - - - - - - - - - - - - - - -
F - - - - - - - - - - - - - - -
G - - - - - - - - - - - - - - -
H - - - F A B A c E E - - - - -
I - - - - - - - - - - - - - - -
J - - - - - - - - - - - - - - -
K - - - - - - - - - - - - - - -
L - - - - - - - - - - - - - - -
M - - - - - - - - - - - - - - -
N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - -
commande> a p
Eliot
Game type: Training
Player 0: Human
N | RACK | SOLUTION | REF | PTS | P | BONUS
===|==========|=================|=====|=====|===|======
1 | EA?AEBF | FABAcEE | H4 | 80 | 0 | *
Total: 80
Rack 0: LMUAEYE
commande> n -1
commande> a p
Eliot
Game type: Training
Player 0: Human
N | RACK | SOLUTION | REF | PTS | P | BONUS
===|==========|=================|=====|=====|===|======
Total: 0
Rack 0: EA?AEBF
commande> a g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
A - - - - - - - - - - - - - - -
B - - - - - - - - - - - - - - -
C - - - - - - - - - - - - - - -
D - - - - - - - - - - - - - - -
E - - - - - - - - - - - - - - -
F - - - - - - - - - - - - - - -
G - - - - - - - - - - - - - - -
H - - - - - - - - - - - - - - -
I - - - - - - - - - - - - - - -
J - - - - - - - - - - - - - - -
K - - - - - - - - - - - - - - -
L - - - - - - - - - - - - - - -
M - - - - - - - - - - - - - - -
N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - -
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 ?
9 2 2 3 15 2 2 2 8 1 1 5 3 6 6 2 1 6 6 6 6 2 1 1 1 1 2
commande> n -1
commande> *
commande> r
commande> n 1
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 ?
9 2 2 3 13 1 2 2 7 1 1 4 3 6 6 2 1 6 6 6 6 2 1 1 1 1 2
commande> a p
Eliot
Game type: Training
Player 0: Human
N | RACK | SOLUTION | REF | PTS | P | BONUS
===|==========|=================|=====|=====|===|======
1 | JEIFLEH | FILEE | H4 | 24 | 0 |
Total: 24
Rack 0: HJ
commande> q
fin du mode entraînement
commande> q