Commit graph

168 commits

Author SHA1 Message Date
Eric S. Raymond
0d0b8df0a3 Ignore l g z i under oldstyle. 2017-07-01 12:35:31 -04:00
NHOrus
3c8482a613 Change state of vase
Clear temporary save where it needs to be cleared instead of random places
2017-07-01 18:25:39 +03:00
Jason S. Ninneman
dec4cf3968 Jettison the -s option.
It's no longer needed since libedit doesn't have the 'paste bug'.
2017-07-01 07:22:53 -07:00
NHOrus
562569f33c Putting cleanup in the right place, too 2017-07-01 15:39:37 +03:00
NHOrus
b0705ba0bb Fix make debug check 2017-07-01 15:39:37 +03:00
NHOrus
062840db69 Test modification for little more coverage 2017-06-30 23:26:18 -04:00
Eric S. Raymond
2c41018358 Improve test coverage. 2017-06-30 12:06:41 -04:00
Eric S. Raymond
1f45966dec Magic-number ellimination, contiguity warnings, cleanup. 2017-06-30 12:06:41 -04:00
NHOrus
a48e0ff30e Tests for misc and main 2017-06-30 18:30:19 +03:00
NHOrus
a6d1f9228b Fixed previous test, added nibble more 2017-06-30 18:05:41 +03:00
NHOrus
a0f5fa0e04 Last one test case 2017-06-30 12:27:11 +03:00
NHOrus
c1efa29510 Some more easy tests 2017-06-30 11:31:18 +03:00
Eric S. Raymond
4aa85d0068 Update illformed.chk for current YAML. 2017-06-29 18:27:14 -04:00
Aaron Traas
aa1dd666a9 Test coverage -- fix regression 2017-06-29 17:22:00 -04:00
Aaron Traas
d0a868bd4a Test coverage - add lots more coverage from actions.c 2017-06-29 17:05:48 -04:00
Aaron Traas
ffb8393985 Documentation and comment cleanup.
Also, renove uused enums.
2017-06-29 16:37:07 -04:00
Eric S. Raymond
21d959a5c2 Documentation polishing and minor test improvements. 2017-06-29 16:25:55 -04:00
Aaron Traas
ffdda21739 Cleanup test case 2017-06-29 15:30:22 -04:00
Aaron Traas
02ece8f874 Coverage - Die while closing after lamp dim 2017-06-29 15:30:22 -04:00
Aaron Traas
c4ceca3db9 Coverage - Test going back when you can't. 2017-06-29 10:57:34 -04:00
Aaron Traas
a434192373 Fixed automated testing 2017-06-29 10:16:41 -04:00
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