From: Eric S. Raymond Date: Tue, 1 Aug 2017 23:40:28 +0000 (-0400) Subject: Add regression test for split commands. X-Git-Tag: 1.3~3 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=25e6b11fd0e9a279798a901b9651965d9a8728b5;p=open-adventure.git Add regression test for split commands. --- diff --git a/NEWS b/NEWS index 8a28518..2f37057 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ = Open Adventure project news = Repository head: + Split commands with objectless transitive verbs are handled correctly. Test suite has 100% code coverage. 1.2: 2017-07-11:: diff --git a/tests/illformed.chk b/tests/illformed.chk index 4124e53..20f18c9 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -457,6 +457,14 @@ There is a shiny brass lamp nearby. There is food here. +> get + +Get what? + +> food + +OK + > eat food Thank you, it was delicious! @@ -610,7 +618,7 @@ Okay, "boo". > score -You have garnered 27 out of a possible 430 points, using 115 turns. +You have garnered 27 out of a possible 430 points, using 117 turns. > z @@ -618,7 +626,7 @@ OK > score -You have garnered 27 out of a possible 430 points, using 117 turns. +You have garnered 27 out of a possible 430 points, using 119 turns. > quit keys diff --git a/tests/illformed.log b/tests/illformed.log index 2645ccf..09ecb52 100644 --- a/tests/illformed.log +++ b/tests/illformed.log @@ -93,6 +93,8 @@ fly keys pour keys throw keys foo up +get +food eat food drink blood drink keys