Commit graph

397 commits

Author SHA1 Message Date
Jason S. Ninneman
50435465a6 Completely wire vocab words in YAML to the code.
This massive patch:
* Finishes working all the vocab words into YAML structures.
* Adds vocab ID generator functions.
* Redoes the input-getting system, removing the need for GETIN(),
  GETTXT(), etc.
* Changes advent<->ascii mapping to avoid the special 'shift'
  character.
* Works around some bad behavior in the dragon attack logic.
* Handles the reservoir magic word without changing the database
  contents.
2017-06-29 01:59:37 -07:00
Eric S. Raymond
d5942e1732 More test repairing. 2017-06-28 13:21:31 -04:00
Eric S. Raymond
783e2e5e2d Repair test breakage from previous commit. 2017-06-28 13:18:07 -04:00
Eric S. Raymond
f6267ff3eb Test consolidation. 2017-06-28 13:03:45 -04:00
Eric S. Raymond
533f737cb3 Merge two tests so the suite can run a little faster. 2017-06-28 12:54:50 -04:00
Aaron Traas
eb89cd5b4e Cleaned up tests/Makefile - added save generation to its own target 2017-06-28 10:57:28 -04:00
Aaron Traas
6152e35afd Test coverage: command-line options for advent 2017-06-28 10:57:28 -04:00
Aaron Traas
3b780dd57e Test coverage -- 100% cheat for real this time 2017-06-28 10:57:28 -04:00
Aaron Traas
6fe8f98b35 Test Coverage - elicit hints for grate and snake 2017-06-27 16:13:49 -04:00
Aaron Traas
4592a24350 Test coverage -- additional coverage in actions.c 2017-06-27 16:13:49 -04:00
Aaron Traas
7b1eb1ec58 buildregress now generates save files correctly. 2017-06-27 16:13:49 -04:00
Aaron Traas
2781413fa9 100% coverage of cheat.c 2017-06-27 16:13:49 -04:00
Aaron Traas
0a30176a8c Allow cheat to generate save files with bogus numbers.
Also remove pre-built save file for resumefail.log
2017-06-27 16:13:49 -04:00
Aaron Traas
7392603b7d "cheat" now has command-line arguments for generating cheat files
-d number of deaths. Signed integer value
-s number of saves. Signed integer value
-o file name of save game to write
2017-06-27 16:13:49 -04:00
Eric S. Raymond
d6cb6f0d8d Create a cheater to test strange save/resume cases.
Patch due to Aaron Traas, but needed modification because of code
drift since submission.
2017-06-26 15:07:09 -04:00
Eric S. Raymond
0c2803638f Correct buggy behavior of sign in endgame. Add a test for this. 2017-06-24 09:30:15 -04:00
Eric S. Raymond
2c9c9076b1 Extend test coverage. read sign in endgame. 2017-06-24 09:15:40 -04:00
Eric S. Raymond
606b590c1e Extend test coverage of vending-machine actions. 2017-06-24 08:06:42 -04:00
Eric S. Raymond
e8e84a24a6 Improve test coverage. 2017-06-23 23:30:17 -04:00
Eric S. Raymond
b8c240f4b1 Repair a check file. 2017-06-22 11:14:42 -04:00
Eric S. Raymond
6277b45d6b Patch around non-working pillo bug fix. 2017-06-22 07:24:45 -04:00
Jason S. Ninneman
97241e87d7 Quick-fix the 'pillo bug'.
Once parsing no longer depends on text being broken up into
5-char tokens, the ugly hack to adventure.yaml must go away.
2017-06-21 22:43:16 -07:00
Eric S. Raymond
fd6da15373 Fix GitLab issue #13 - The "eat" command exhibits strange behavior
The problem wasn't actually with "eat" but with "grate".  Processing
of any two-word command with an object of "grate", when given at certain
locations including the start, inappropriately jumped directly
to the movement code (ignoring the verb).

There was a similar bug in the ancestral 2.5, though it manifested slightly
differently.
2017-06-21 16:54:10 -04:00
Eric S. Raymond
6dbe6f081c Revert "Test coverage - Almost all of score.c". It's breaking tests. 2017-06-21 16:43:27 -04:00
Eric S. Raymond
7ed1e95441 Revert "Test coverage - 100% score.c". It's breaking tests. 2017-06-21 16:37:59 -04:00
Aaron Traas
f4d3f6def9 Test coverage - 100% score.c 2017-06-21 15:12:53 -04:00
Aaron Traas
236abc8cab Test coverage - Almost all of score.c 2017-06-21 15:04:41 -04:00
Aaron Traas
67ed99b29c Test Coverage -- lots of new pieces of actions.c 2017-06-21 12:14:24 -04:00
Aaron Traas
89de4e4602 Test coverage -- more corner cases in actions.c 2017-06-20 18:43:19 -04:00
Aaron Traas
53fd6348b9 Test coverage - more corner cases in actions.c 2017-06-20 13:39:42 -04:00
Eric S. Raymond
f50e984cec Add test for "cage bird". 2017-06-20 09:32:35 -04:00
Eric S. Raymond
73f3831294 Add -l to coverage testing. 2017-06-20 08:34:01 -04:00
Eric S. Raymond
d747d43429 Test logic for lamp dimming triggering battery replacement. 2017-06-20 06:52:52 -04:00
Aaron Traas
9c88649cd4 Test coverage More misuse of transitive verbs 2017-06-19 17:33:32 -04:00
Aaron Traas
7ae0782b25 Test coverage - failure to fill 2017-06-19 17:33:32 -04:00
Aaron Traas
08c0524ee3 Test coverage -- intransitive carry when one object is present 2017-06-19 17:33:32 -04:00
Aaron Traas
7753ad3134 Test coverage - drink with no valid object 2017-06-19 17:33:32 -04:00
Aaron Traas
f4ac82b9f8 Really 100% test coverage for saveresume.c 2017-06-19 13:55:04 -04:00
Aaron Traas
43247f995b Should have 100% coverage on saveresume.c now 2017-06-19 13:55:04 -04:00
Aaron Traas
18a9be501f Save/resume fail test coverage -- test works in Docker now 2017-06-19 13:09:15 -04:00
Eric S. Raymond
f84c5033e9 Revert "Improved test coverage -- save/resume fail"
Fails in GitLab CI - looks like /dev/badfilename can actually be opened there.
2017-06-19 11:37:03 -04:00
Aaron Traas
e5b6f71d7a Improved test coverage -- save/resume fail 2017-06-19 11:24:46 -04:00
Eric S. Raymond
28f9fd59bb Add axeorama log, extending test coverage. 2017-06-19 10:32:58 -04:00
Eric S. Raymond
c2df849dad Improve test coverage. 2017-06-19 07:33:40 -04:00
Eric S. Raymond
d250b51030 Get usage message into coverage tests. 2017-06-18 23:31:59 -04:00
Jason S. Ninneman
550734fd3f Gut and rebuild YES() with cleaner approach that doesn't rely on packing.
The new support functions get_input() and echo_input() (and others not made yet) will eventually replace GETIN() and MAPLIN().
2017-06-18 13:39:59 -07:00
Eric S. Raymond
0dd961701f This should get test coverage to 93%. 2017-06-18 16:39:01 -04:00
Eric S. Raymond
2622a9835a Improve test coverage. 2017-06-18 16:27:12 -04:00
Eric S. Raymond
00514b0793 Improve test coverage. 2017-06-18 16:08:09 -04:00
Eric S. Raymond
83330fc0fd Improve test coverage 2017-06-18 15:50:52 -04:00