- add regression test for Game::load - this test currently fails with a segfault

This commit is contained in:
Antoine Fraboulet 2005-12-27 09:13:48 +00:00
parent b7f5f46391
commit 644653be0a
4 changed files with 26 additions and 0 deletions

View file

@ -45,3 +45,7 @@ freegame_change 3
# Three AI players
freegame_3_ai 2
#
# Load / Save
#
load_game 0

2
test/load_game.input Normal file
View file

@ -0,0 +1,2 @@
c test.elt
q

3
test/load_game.ref Normal file
View file

@ -0,0 +1,3 @@
[?] pour l'aide
commande> c test.elt
chargement de -test.elt-

17
test/test.elt Normal file
View file

@ -0,0 +1,17 @@
Eliot
Game type: Training
Player 0: Human
N | RACK | SOLUTION | REF | PTS | P | BONUS
===|==========|=================|=====|=====|===|======
1 | TSL?ENU | LUTiNES | H7 | 64 | 0 | *
2 | EURTEAA | LAUREATE | 7H | 60 | 0 | *
3 | SAFNEQT | FANEES | O4 | 39 | 0 |
4 | QT+SAPIO | PORTAIS | K5 | 36 | 0 |
5 | Q+I?JEEG | JuGEES | 13C | 28 | 0 |
6 | IQ+ZRFEH | QUIZ | D12 | 58 | 0 |
Total: 285
Rack 0: EFHR