Commit graph

384 commits

Author SHA1 Message Date
Eric S. Raymond
5929a68b88 Real test coverage dor SAVE_TAMPERING. 2023-03-12 17:37:58 -04:00
Eric S. Raymond
43af075fa9 Cleann up scratchfile after tesrs. 2023-03-12 17:21:15 -04:00
Eric S. Raymond
7723f3fc1a Add coverage exception now that SAVE_TAMPERING is back. 2023-03-12 10:11:52 -04:00
Eric S. Raymond
0ffb297801 Relax the savefile validity check a little.
There was a very old bug, probably predating the OpenAdventure port,
that would poke a stashed value of -1 into the snake object if you did
a save in endgame, and then fail the savefile validation on resume.
This was masked for a long time by a bug in put() just fixed a couple
of revisions ago.
2023-03-12 10:03:43 -04:00
Eric S. Raymond
04df0ce64c Add message and bailout on invalid save.
Note: save/resume still fails at saveresume.4
at this revision.
2023-03-12 06:39:57 -04:00
Eric S. Raymond
71f05c4567 Bugfix: bird starts caged in endgame.
Turns out the code of put() had been modified ibcorrectly, but
the bug was masked in all but a few cases, noe of which would be
encountered in normal gameplay.

A test to ensure this bug does noit recur has been added.
2023-03-11 09:35:26 -05:00
Eric S. Raymond
b125fe7b2a Fix interrupted-magic-words cosmetic bug.
C patch by Torbjörn Andersson.
2023-03-10 16:43:27 -05:00
Eric S. Raymond
8f527fb433 Fix whitespace glitch. 2023-03-09 10:19:53 -05:00
Eric S. Raymond
643eab4e9c Use $(advent) rather than advent where needed. 2023-03-09 08:54:20 -05:00
Eric S. Raymond
f53476f826 Complete fix of GitLab issue #64: Coverage summary looks wrong 2023-03-08 22:55:12 -05:00
Eric S. Raymond
83c32598be Partially address Gitlsb issue #64: Coverage summary looks wrong 2023-03-08 21:54:45 -05:00
Eric S. Raymond
1efd1027f7 Add test for interspersed non-motion command amidst magic words. 2023-03-04 20:26:13 -05:00
Eric S. Raymond
a01c08385c Prevent a spurious coverage error. 2023-03-04 19:58:57 -05:00
Eric S. Raymond
1f644a1d7d Don't crap out on failed diff. 2023-03-01 14:01:44 -05:00
Eric S. Raymond
3f34adad3b Move pylint suppressions inline. 2023-02-28 19:46:50 -05:00
Eric S. Raymond
9a1b4d021e Improve message emission when player wins. 2023-02-28 15:10:54 -05:00
Eric S. Raymond
ff2dd31209 Update our tapview copy. 2023-02-28 15:04:42 -05:00
Eric S. Raymond
23e9931645 Prevent spurious error return. 2023-02-28 14:48:33 -05:00
Eric S. Raymond
aa32e8f4d6 Add Ryan Sarson's 430-point win to the test suite. 2023-02-27 23:03:38 -05:00
Eric S. Raymond
60d7070506 Cleanup for current pylint. 2023-02-17 13:45:50 -05:00
Eric S. Raymond
86e2e21ef8 Drop vase on pillow in well house and confirm that you get points for it. 2022-04-18 12:40:09 -04:00
Eric S. Raymond
dee8809e30 pylint cleanup. 2022-04-14 13:54:45 -04:00
Eric S. Raymond
44017d64bb Reorganize and clean up test machinery. 2022-04-14 12:27:15 -04:00
Eric S. Raymond
dd7b664e32 Revert Makefile changes that broke coverage testing for cheat.c 2022-04-14 12:05:03 -04:00
Eric S. Raymond
0f5fd82b77 Add a test of resurrection logic. 2022-04-13 04:38:41 -04:00
Eric S. Raymond
834f6e753c Add test that dropping vase in tghe soft room does not break it. 2022-04-13 04:23:28 -04:00
Eric S. Raymond
af7ce31dd9 Simplify the test machinery. 2022-04-13 03:59:57 -04:00
Eric S. Raymond
337377ab57 savecheck only needs to be run for makiung coverage reports. 2022-04-13 03:45:59 -04:00
Eric S. Raymond
d235313e97 Switch normal regression testing to TAP output. 2022-04-13 03:13:53 -04:00
Eric S. Raymond
129136b51e Integrate multifile test into TAP sequence. 2022-04-13 02:58:02 -04:00
Eric S. Raymond
7b3b5d32c0 More steps towards TAP. 2022-04-13 02:42:25 -04:00
Eric S. Raymond
c78845e05a Update maxhinert for tap from reposurgeon...
...but it doesn't work yet.
2022-04-12 23:23:48 -04:00
Eric S. Raymond
74dc0d168a Take test coverage back to 100% 2022-04-12 22:47:41 -04:00
Eric S. Raymond
829e55f99d Another test coverage improvement. 2022-04-12 21:51:37 -04:00
Eric S. Raymond
10b888f449 Another coverage improvement 2022-04-12 21:24:42 -04:00
Eric S. Raymond
f9237d6970 Improve YAML symbol coverage. 2022-04-12 20:08:45 -04:00
Eric S. Raymond
8b8a3a73c4 Fix bugs in coverage testing. 2022-04-12 19:45:43 -04:00
Eric S. Raymond
c5250b5f3f Clean up warning and deprecation issues. 2022-04-12 10:53:37 -04:00
Eric S. Raymond
49e2479efa Improve test coverage. 2022-04-07 06:42:20 -04:00
Eric S. Raymond
beae508e1d Add a test for the isolated-foo case 2022-04-06 14:54:43 -04:00
Eric S. Raymond
dd5ca23302 Second part of fix for "fee fie foe foo" and "fum", with test. 2022-04-06 14:41:30 -04:00
Eric S. Raymond
db384731a7 Address GitLab issue #56: handling of "fee fie foe foo" and "fum"
Also add a regression test for this.
2022-04-06 13:43:08 -04:00
Eric S. Raymond
a2116b3d79 Add test for correct listen behavior. 2022-04-06 07:54:20 -04:00
Eric S. Raymond
46e1595cb0 Address Gitlanb issue #54: listen command not showing all sounds 2022-04-06 07:49:42 -04:00
Eric S. Raymond
e0b9aeda6e Resolve Gitlab issue #55: in endgame, some object starting states are incorrect
The uncaged status of the bird in the endagame doesn't seem worth the effort to fix it.
2022-04-05 19:20:21 -04:00
Eric S. Raymond
73b49d27f4 Fix issue #51: rug flying is broken
And add a test for the fix.
2022-04-05 15:18:17 -04:00
Eric S. Raymond
5ab94ce8de Fix bad copypasta. 2021-03-14 20:45:34 -04:00
Eric S. Raymond
5aaa22860a Experimental steps towards TAP and test parallelization. 2021-03-10 16:56:39 -05:00
Eric S. Raymond
f2f238e9e4 Address GitLab issue #55: water should not be available in endgame. 2021-02-15 22:21:26 -05:00
Jason Ninneman
12443b0159 Use Python 3, not 2. 2021-01-11 15:56:05 +00:00