Eric S. Raymond
d9ddf4d805
Consolidate all magicwords tests into one file. 100% coverage.
2023-04-02 17:45:04 -04:00
Eric S. Raymond
97a69d8cbd
Merge two NOCOMPARE tests.
2023-04-01 11:01:28 -04:00
Eric S. Raymond
3af590e972
Trim the illformed test. Still 100% coverage.
2023-03-30 20:09:10 -04:00
Eric S. Raymond
30a98cc916
Factor out the test of the bare word "seed".
2023-03-30 01:05:32 -04:00
Eric S. Raymond
5f7ce87040
Change prompt generation to be more compatible with the advent430 branch.
2023-03-22 17:09:14 -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
31d561b470
Coverage improvement. Also, it's rude to die silently.
2018-11-15 13:55:10 -05:00
NHOrus
9e2cb3c191
Put some of important parameters into fixed width signed integers
...
Massaged test files. Fixes issue #41
2017-09-11 00:58:13 +03:00
Eric S. Raymond
25e6b11fd0
Add regression test for split commands.
2017-08-01 19:40:28 -04:00
Eric S. Raymond
fd4e3aea6a
Address GitLab issue #36 : "Get what?" prompt incorrectly handled
2017-08-01 18:37:58 -04:00
Aaron Traas
ca5374edc3
Modified action() to take take a copy of command rather than a pointer.
...
It should be safer now that we're not scribbling all over command in
action(), as it's closer to pure. Also fixed a bug in say.
2017-07-21 18:27:02 -04:00
Aaron Traas
30f13c6c25
Back up to 100% coverage.
2017-07-21 17:22:03 -04:00
Aaron Traas
5337e00725
Fix to Gitlab issue #32 . Now SEED and WASTE are in adventure.yaml
...
NOTE: the tests are all updated because now, like every other action,
SEED and WASTE have a \n before their output, as they correctly use
SPEAK
2017-07-21 10:23:02 -04:00
NHOrus
10d681ebeb
Test for freshly fixed bugs
...
Also, removed redundant specials from illformed
2017-07-20 21:00:23 +03:00
Eric S. Raymond
2aa35a6d84
Fix test breakage.
2017-07-20 12:29:52 -04:00
Eric S. Raymond
342994376a
Address GitLab issue #28 : Advent hangs on some inputs
2017-07-20 12:24:02 -04:00
Eric S. Raymond
2fa530340d
No more packing in the parser.
...
As a side effect, ill-formed input consisting of "_\n" gives
a slighty better error message.
2017-07-20 10:17:56 -04:00
Aaron Traas
33e546b746
Test consolidation
2017-07-16 07:57:44 -04:00
Aaron Traas
39fbd7a56f
Revert "Remove 'version' test. Framework plays badly with variable output."
...
This reverts commit 13f7304081
.
2017-07-10 16:04:48 -04:00
Eric S. Raymond
13f7304081
Remove 'version' test. Framework plays badly with variable output.
...
We'll have to come up with generic solution to this.
2017-07-10 12:18:35 -04:00
NHOrus
0ea7dcf1a0
Version bump in tests
2017-07-10 15:11:19 +03:00
NHOrus
53b68161ff
Two more lines of coverage; more cleanup for macros
2017-07-09 20:25:28 +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
Eric S. Raymond
88477f1175
Repair tests to track previous change.
2017-07-05 19:26:32 -04:00
NHOrus
878800edc6
Triggering more phrases
2017-07-05 18:59:05 +03:00
Aaron Traas
f3dae6ff83
Coverage -- more odd actions
2017-07-04 17:41:42 -04: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
Aaron Traas
22a557efb1
Coverage -- version command
2017-07-02 02:22:52 -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
d0a868bd4a
Test coverage - add lots more coverage from actions.c
2017-06-29 17:05:48 -04:00
Eric S. Raymond
21d959a5c2
Documentation polishing and minor test improvements.
2017-06-29 16:25:55 -04: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
Aaron Traas
236abc8cab
Test coverage - Almost all of score.c
2017-06-21 15:04:41 -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
Aaron Traas
9c88649cd4
Test coverage More misuse of transitive verbs
2017-06-19 17:33:32 -04:00
Eric S. Raymond
957c78d0c2
Improve test coverage.
2017-06-18 11:36:03 -04:00
Eric S. Raymond
23cc7b45be
Improve test coverage.
2017-06-18 11:14:44 -04:00
Eric S. Raymond
937714f31d
Magic-number limination. Improve test coverage.
2017-06-18 09:44:34 -04:00
Eric S. Raymond
d363a5c564
Trying again to repair tests.
2017-06-18 09:13:35 -04:00
Eric S. Raymond
6333544efb
Simplify code, improve test coverage.
2017-06-18 08:57:08 -04:00
Eric S. Raymond
9e1143e780
Improve test coverage.
2017-06-18 07:41:40 -04:00