Commit graph

16 commits

Author SHA1 Message Date
Olivier Teulière
11adaba410 - Added several tests for the regular expressions engine
- New regexp parser using Boost.Spirit. Lex and yacc are now gone.
   The main advantage of this new parser, apart from being purely C++,
   is that it can handle wide characters.
   Currently, the new parser does the same as the previous one, but the
   code is not yet ready to use regular expressions with non-ASCII
   dictionaries.
2008-07-07 17:29:59 +00:00
Olivier Teulière
597673e8e5 Fixed an invalid read when sorting the search results and adapted regression scenarii 2008-07-04 19:03:12 +00:00
Olivier Teulière
c7f85ce151 - Search results with the same score are now sorted alphabetically
- Adapted test scenarii for the new order of results
2008-03-03 22:13:58 +00:00
Olivier Teulière
8c3708fa99 - Removed Game::setRackRandomOld() (replaced by Game::setRackRandom())
- Adapted regression scenarii
2008-01-15 14:56:38 +00:00
Olivier Teulière
7e7f7f2dfa - wxwin/mainframe.cc: Fixed a crash occurring when no config file is found
- Fixed a bug occurring in duplicate mode: sometimes the game ended too early,
   while it was still allowed to go on.
   Also updated the corresponding regression scenario
2008-01-10 10:23:36 +00:00
Olivier Teulière
e7a8d01a8d Merged the "cppdic" branch back into HEAD.
There are too many change to list properly, here is an overview of the main changes:
 - the dictionary is now in C++
 - the dictionary has a new format, where it is possible to specify the letters,
   their points, their frequency, ... It is backwards compatible.
 - Eliot now supports non-ASCII characters everywhere
 - i18n of the compdic, listdic, regexpmain binaries
 - i18n of the wxWidgets interface (now in english by default)
2008-01-08 13:52:32 +00:00
Olivier Teulière
21c07afee4 Removed useless files 2006-11-05 17:24:32 +00:00
Olivier Teulière
9949225b8b Fixed a nasty bug, due to the way jokers are handled 2006-11-05 17:04:39 +00:00
Antoine Fraboulet
f0949a59de - adding some tests : training_joker2 still fails, no clue where it comes from
search should find much more results - regression from 1.4
2006-11-05 13:34:27 +00:00
Antoine Fraboulet
a97b91dfe6 - add new regression test for a bug on loading previously saved games 2006-08-11 22:04:45 +00:00
Antoine Fraboulet
f6fa78c32c - driver
add "training_cross" test that checks horizontal scores in board_cross.cpp
    add several load/save tests
    add regexp test

  - Corrections
       training_search.ref : correcting reference file - 5 points instead of 4 on (Eh, En, Es, Ex)
       training_back.ref : sorting order (linked to points bug - insertion order in list)
       duplicate_2_ai.ref : correct score, change the whole game
       freegame_passing.ref : correct score (JEUNE H11 +2 : 45 -> 47)
       freegame_3_ai.ref : correct score 13:CAPEYE+4, 14:VOLETE+3, 16:FULL+2, 17:VIDE+5
2006-01-01 19:25:10 +00:00
Antoine Fraboulet
644653be0a - add regression test for Game::load - this test currently fails with a segfault 2005-12-27 09:13:48 +00:00
Antoine Fraboulet
e9dca4ea65 - adding regression test for Game::back() method 2005-12-27 01:04:49 +00:00
Olivier Teulière
f060497e47 Unlike libreadline 4, libreadline 5 echoes the input given with < input_file.
The regression scenarios are now adapted to the behaviour of libreadline 5.
2005-12-24 17:50:11 +00:00
Olivier Teulière
b4e66f273e Use the readline library in the text interface. In particular, it provides
a history of commands
2005-04-27 17:55:32 +00:00
Olivier Teulière
25304bd978 test/*: Added non-regression tests, based on the text interface.
'regression.pl' is the script that runs the regression, and 'drivers' contains
the list of scenario files to be played.
By default, the complete regerssion is played, but you can play specific
scenarios by adding them to the command-line.
Example: ./regression.pl training_bag freegame_change
2005-04-16 15:47:59 +00:00