From 25e6b11fd0e9a279798a901b9651965d9a8728b5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 1 Aug 2017 19:40:28 -0400 Subject: [PATCH] Add regression test for split commands. --- NEWS | 1 + tests/illformed.chk | 12 ++++++++++-- tests/illformed.log | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) 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 -- 2.31.1