Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
zilf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Jira
Jira
Labels
Merge Requests
0
Merge Requests
0
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
zilf
zilf
Commits
465739e1505a
Commit
0b106885
authored
Dec 08, 2020
by
Jesse McGrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 'then' and 'multiples' zillib test cases for new take/wear behavior.
parent
9f437ee306ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
zillib/tests/test-multiples.zil
zillib/tests/test-multiples.zil
+8
-8
zillib/tests/test-then.zil
zillib/tests/test-then.zil
+1
-1
No files found.
zillib/tests/test-multiples.zil
View file @
465739e1505a
...
...
@@ -79,13 +79,13 @@
<TEST-CASE ("Take all")
<COMMAND [TAKE ALL]>
<EXPECT "hat: Taken
(and worn)
.|
<EXPECT "hat: Taken.|
banana: Taken.|
apple: Taken.|">
<CHECK <IN? ,HAT ,WINNER>>
<CHECK <IN? ,APPLE ,WINNER>>
<CHECK <IN? ,BANANA ,WINNER>>
<CHECK <AND <IN? ,HAT ,WINNER> <
FSET? ,HAT ,WORNBIT
>>>
<CHECK <AND <IN? ,HAT ,WINNER> <
NOT <FSET? ,HAT ,WORNBIT>
>>>
<CHECK <NOT <IN? ,CAGE ,WINNER>>>
<CHECK <NOT <IN? ,DESK ,WINNER>>>
<CHECK <NOT <IN? ,BUCKET ,WINNER>>>
...
...
@@ -93,12 +93,12 @@ apple: Taken.|">
<TEST-CASE ("Exclude one object with BUT")
<COMMAND [TAKE ALL BUT BANANA]>
<EXPECT "hat: Taken
(and worn)
.|
<EXPECT "hat: Taken.|
apple: Taken.|">
<CHECK <IN? ,HAT ,WINNER>>
<CHECK <IN? ,APPLE ,WINNER>>
<CHECK <NOT <IN? ,BANANA ,WINNER>>>
<CHECK <AND <IN? ,HAT ,WINNER> <
FSET? ,HAT ,WORNBIT
>>>
<CHECK <AND <IN? ,HAT ,WINNER> <
NOT <FSET? ,HAT ,WORNBIT>
>>>
<CHECK <NOT <IN? ,CAGE ,WINNER>>>
<CHECK <NOT <IN? ,DESK ,WINNER>>>
<CHECK <NOT <IN? ,BUCKET ,WINNER>>>
...
...
@@ -106,11 +106,11 @@ apple: Taken.|">
<TEST-CASE ("Exclude two objects with BUT")
<COMMAND [TAKE ALL BUT BANANA AND APPLE]>
<EXPECT "You
wear
the hat.|">
<EXPECT "You
pick up
the hat.|">
<CHECK <IN? ,HAT ,WINNER>>
<CHECK <NOT <IN? ,APPLE ,WINNER>>>
<CHECK <NOT <IN? ,BANANA ,WINNER>>>
<CHECK <AND <IN? ,HAT ,WINNER> <
FSET? ,HAT ,WORNBIT
>>>
<CHECK <AND <IN? ,HAT ,WINNER> <
NOT <FSET? ,HAT ,WORNBIT>
>>>
<CHECK <NOT <IN? ,CAGE ,WINNER>>>
<CHECK <NOT <IN? ,DESK ,WINNER>>>
<CHECK <NOT <IN? ,BUCKET ,WINNER>>>
...
...
@@ -118,9 +118,9 @@ apple: Taken.|">
<TEST-CASE ("Take individual objects with AND")
<COMMAND [TAKE HAT AND BANANA]>
<EXPECT "hat: Taken
(and worn)
.|
<EXPECT "hat: Taken.|
banana: Taken.|">
<CHECK <AND <IN? ,HAT ,WINNER> <
FSET? ,HAT ,WORNBIT
>>>
<CHECK <AND <IN? ,HAT ,WINNER> <
NOT <FSET? ,HAT ,WORNBIT>
>>>
<CHECK <IN? ,BANANA ,WINNER>>
<CHECK <NOT <IN? APPLE ,WINNER>>>>
...
...
zillib/tests/test-then.zil
View file @
465739e1505a
...
...
@@ -81,7 +81,7 @@
|
You pick up the banana.|
|
You
wear
the hat.|">>
You
pick up
the hat.|">>
<TEST-CASE ("G THEN G")
<COMMAND [TAKE INVENTORY THEN X ME]>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment