Commit graph

432 commits

Author SHA1 Message Date
Aaron Traas
926a806db9 Made YAML coverage test work with variable messages (%s, %d, etc.) 2017-07-08 19:37:51 -04:00
NHOrus
c0817b6bb5 Fix dead bear tests 2017-07-08 20:02:30 +03:00
Eric S. Raymond
7d690e0b95 Set game.newloc when reincarnated. Fixes a bug. 2017-07-08 11:34:09 -04:00
Eric S. Raymond
9a6e492ba4 Expand test coverage, partly fixing Gitlab issue #23. 2017-07-08 08:59:28 -04:00
Aaron Traas
4446c61d5f Now YAML coverage test generates a nice HTML template 2017-07-07 22:41:59 -04:00
Aaron Traas
310559ce15 adventure.yaml coverage test script -- not at all polished, but works 2017-07-07 16:28:14 -04:00
NHOrus
9100c14d2c Fuzzed tests for two of untested hint conditions 2017-07-07 22:41:53 +03:00
NHOrus
551838cea2 Deal around newline-only lines pruned to zero-lenght
Test for that, too
2017-07-07 11:21:37 +03:00
NHOrus
cca3686f2f Clear login in bvreak
Test double-breaking of vase
2017-07-06 18:23:07 +03:00
NHOrus
ca7ac4063f Magic-number elimination and fix
More test coverage for some of the cases
2017-07-06 17:55:56 +03:00
NHOrus
aee5fff1a3 Some test improvements 2017-07-06 11:04:07 +03:00
Eric S. Raymond
88477f1175 Repair tests to track previous change. 2017-07-05 19:26:32 -04:00
NHOrus
d3578c9da9 Test for bear, from tag seed 2017-07-05 15:41:36 -04:00
NHOrus
603f548a21 Fixed feed command and white space in tests 2017-07-05 15:41:36 -04:00
NHOrus
7137c20316 Capture correct behavior from seed 2017-07-05 15:41:36 -04:00
NHOrus
df422fe2ed Test cover all of discard 2017-07-05 19:12:05 +03:00
NHOrus
878800edc6 Triggering more phrases 2017-07-05 18:59:05 +03:00
Eric S. Raymond
6ec4bc0dba Make a test more explicit. 2017-07-05 11:47:10 -04:00
Eric S. Raymond
e521cc368e Repair oilplant.log. 2017-07-05 11:36:16 -04:00
Eric S. Raymond
3b64fb3bfd Reduce test makefile verbosity under Emacs. 2017-07-05 11:09:56 -04:00
Eric S. Raymond
df87c596fb Under oldstyle, mangled echoed unknown text to simulate old behavior. 2017-07-05 02:34:36 -04:00
NHOrus
caab2242fc Trigger 'NO_EDIBLES' message 2017-07-05 08:37:04 +03:00
Aaron Traas
f3dae6ff83 Coverage -- more odd actions 2017-07-04 17:41:42 -04:00
NHOrus
4ac9df527b Test for filling full bottle with different liquid 2017-07-04 20:35:03 +03:00
NHOrus
e46cbdf194 Unspk'd (v)carry. Made logic more visible.
And tested some of newly exposed cases.
2017-07-04 19:30:22 +03:00
NHOrus
665103410a Unspk'd and streamlined attack. Tested one of discovered gaps. 2017-07-04 18:41:28 +03:00
Aaron Traas
16a175bbab Eliminated bivalve function.
Reason: only called in lock(), you can't be TOTING a clam, you can't
have the trident at a carryable oyster, and the code IMHO is more
readable this way.
2017-07-04 10:06:41 -04:00
Eric S. Raymond
e31e69b172 Grammar fix. 2017-07-04 09:04:10 -04:00
NHOrus
e1d9c97118 Drinking not from stream gets the same result 2017-07-04 15:18:49 +03:00
NHOrus
dc34ac3d06 workaround for eat grate bug in retrospective tests 2017-07-04 15:18:49 +03:00
Eric S. Raymond
393010ec41 Entirely eliminate wd1x and wd2x members of the command block.
In the process, fix another case-smashing bug.
2017-07-03 16:49:33 -04:00
NHOrus
f52a78a1f8 Captured output of help and info commands
Can't believe it wasn't done before
2017-07-03 22:15:19 +03:00
Eric S. Raymond
a768555312 Use the raw buffer in tr command structure for editing.
This fixes some minor bugs. Unknown words are no longer truncated
nor uppercased on echo.
2017-07-03 12:52:28 -04:00
Eric S. Raymond
854e21a1af Remove a bad command from a check log.
It's interfering with a refactor, and pathological cases really
ought to be checked elsewhere.
2017-07-03 10:10:14 -04:00
Eric S. Raymond
f03bde268e Refactor tokenization to save raw tokens and use static buffer space...
...rather than dynamic storage.

As a side effect, this seems to have fixed a very ninor bug in the processing
of the bare word 'nothing'.  But I don't know where the bug was.  Not happy.
2017-07-03 08:53:10 -04:00
NHOrus
f8166fdb89 Visit room with breathtaking view
Try to extinguish a volcano
Closes #22
2017-07-03 07:30:53 +03:00
NHOrus
5613b0ce36 Unspk and streamline eat command 2017-07-03 06:07:57 +03:00
NHOrus
da78e7eb92 Wake dwarves differently 2017-07-03 05:41:49 +03:00
NHOrus
77a3616182 Cover branch last branch of bird action
And remove distracting line from tests
2017-07-03 05:30:46 +03:00
Aaron Traas
e10faf6edb Coverage -- attack bird after game closed 2017-07-02 22:08:45 -04:00
Aaron Traas
c8445a88d7 Coverage -- corner cases in lock and find 2017-07-02 21:53:28 -04:00
Aaron Traas
481d198d39 Coverage -- giant words 2017-07-02 21:42:42 -04:00
Aaron Traas
854b9b0abd Coverage -- intransitive attack 2017-07-02 21:42:42 -04:00
NHOrus
993194bd4d Undid unspeaking of wave, fixed test again.
Changed property math to helper function.
2017-07-03 00:47:17 +03:00
NHOrus
fbc80f0363 Unfalsify coverage check 2017-07-02 22:57:25 +03:00
NHOrus
c811512a82 More tests, multilined yaml 2017-07-02 15:16:50 -04:00
NHOrus
369c67840e Attack content and dead bear 2017-07-02 21:10:27 +03:00
Eric S. Raymond
708dd0fb4a Imprive coverage of cheat. 2017-07-02 13:57:01 -04:00
Aaron Traas
35f4af108d Coverage - attack sitting bear 2017-07-02 13:40:24 -04:00
Jason S. Ninneman
73278b1a3c Bump save file version number.
Also add missing space in the version mesage.
2017-07-02 09:55:53 -07:00