Skip to content

Commit

Permalink
Add tests for Inform 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Sep 6, 2015
1 parent 29a1016 commit a23f9b6
Show file tree
Hide file tree
Showing 9 changed files with 779 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/languages/inform7/comment_feature.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Foobar]
[Foo
bar
baz]

----------------------------------------------------

[
["comment", "[Foobar]"],
["comment", "[Foo\r\nbar\r\nbaz]"]
]

----------------------------------------------------

Checks for comments.
85 changes: 85 additions & 0 deletions tests/languages/inform7/keyword_feature.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
after
before
carry out
check
continue the action
definition :
do nothing
else
end if
end unless
end the story
every turn
if
include
instead
instead of
let
move
no
now
otherwise
repeat
report
resume the story
rule for
running through
say
saying
stop the action
test
try
trying
understand
unless
use
when
while
yes

----------------------------------------------------

[
["keyword", "after"],
["keyword", "before"],
["keyword", "carry out"],
["keyword", "check"],
["keyword", "continue the action"],
["keyword", "definition"], ["punctuation", ":"],
["keyword", "do nothing"],
["keyword", "else"],
["keyword", "end if"],
["keyword", "end unless"],
["keyword", "end the story"],
["keyword", "every turn"],
["keyword", "if"],
["keyword", "include"],
["keyword", "instead"],
["keyword", "instead of"],
["keyword", "let"],
["keyword", "move"],
["keyword", "no"],
["keyword", "now"],
["keyword", "otherwise"],
["keyword", "repeat"],
["keyword", "report"],
["keyword", "resume the story"],
["keyword", "rule for"],
["keyword", "running through"],
["keyword", "say"],
["keyword", "saying"],
["keyword", "stop the action"],
["keyword", "test"],
["keyword", "try"],
["keyword", "trying"],
["keyword", "understand"],
["keyword", "unless"],
["keyword", "use"],
["keyword", "when"],
["keyword", "while"],
["keyword", "yes"]
]

----------------------------------------------------

Checks for keywords.
25 changes: 25 additions & 0 deletions tests/languages/inform7/number_feature.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
42
3.14159
50kg
100m
one two three
four five six
seven eight nine
ten eleven twelve

----------------------------------------------------

[
["number", "42"],
["number", "3.14159"],
["number", "50kg"],
["number", "100m"],
["number", "one"], ["number", "two"], ["number", "three"],
["number", "four"], ["number", "five"], ["number", "six"],
["number", "seven"], ["number", "eight"], ["number", "nine"],
["number", "ten"], ["number", "eleven"], ["number", "twelve"]
]

----------------------------------------------------

Checks for numbers.
73 changes: 73 additions & 0 deletions tests/languages/inform7/position_feature.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
above
adjacent to
back side of
below
between
down
east
everywhere
front side
here
in
inside
inside from
north
northeast
northwest
nowhere
on
on top of
other side
outside
outside from
part of
parts of
regionally in
south
southeast
southwest
through
up
west
within

----------------------------------------------------

[
["position", "above"],
["position", "adjacent to"],
["position", "back side of"],
["position", "below"],
["position", "between"],
["position", "down"],
["position", "east"],
["position", "everywhere"],
["position", "front side"],
["position", "here"],
["position", "in"],
["position", "inside"],
["position", "inside from"],
["position", "north"],
["position", "northeast"],
["position", "northwest"],
["position", "nowhere"],
["position", "on"],
["position", "on top of"],
["position", "other side"],
["position", "outside"],
["position", "outside from"],
["position", "part of"],
["position", "parts of"],
["position", "regionally in"],
["position", "south"],
["position", "southeast"],
["position", "southwest"],
["position", "through"],
["position", "up"],
["position", "west"],
["position", "within"]
]

----------------------------------------------------

Checks for positions.
157 changes: 157 additions & 0 deletions tests/languages/inform7/property_feature.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
adjacent
carried
closed
concealed
contained
dark
described
edible
empty
enclosed
enterable
even
female
fixed in place
full
handled
held
improper-named
incorporated
inedible
invisible
lighted
lit
lockable
locked
male
marked for listing
mentioned
negative
neuter
non-empty
non-full
non-recurring
odd
opaque
open
openable
plural-named
portable
positive
privately-named
proper-named
provided
publically-named
pushable between rooms
recurring
related
rubbing
scenery
seen
singular-named
supported
swinging
switchable
switched
switched on
switched off
touchable
touched
transparent
unconcealed
undescribed
unlit
unlocked
unmarked for listing
unmentioned
unopenable
untouchable
unvisited
variable
visible
visited
wearable
worn

----------------------------------------------------

[
["property", "adjacent"],
["property", "carried"],
["property", "closed"],
["property", "concealed"],
["property", "contained"],
["property", "dark"],
["property", "described"],
["property", "edible"],
["property", "empty"],
["property", "enclosed"],
["property", "enterable"],
["property", "even"],
["property", "female"],
["property", "fixed in place"],
["property", "full"],
["property", "handled"],
["property", "held"],
["property", "improper-named"],
["property", "incorporated"],
["property", "inedible"],
["property", "invisible"],
["property", "lighted"],
["property", "lit"],
["property", "lockable"],
["property", "locked"],
["property", "male"],
["property", "marked for listing"],
["property", "mentioned"],
["property", "negative"],
["property", "neuter"],
["property", "non-empty"],
["property", "non-full"],
["property", "non-recurring"],
["property", "odd"],
["property", "opaque"],
["property", "open"],
["property", "openable"],
["property", "plural-named"],
["property", "portable"],
["property", "positive"],
["property", "privately-named"],
["property", "proper-named"],
["property", "provided"],
["property", "publically-named"],
["property", "pushable between rooms"],
["property", "recurring"],
["property", "related"],
["property", "rubbing"],
["property", "scenery"],
["property", "seen"],
["property", "singular-named"],
["property", "supported"],
["property", "swinging"],
["property", "switchable"],
["property", "switched"],
["property", "switched on"],
["property", "switched off"],
["property", "touchable"],
["property", "touched"],
["property", "transparent"],
["property", "unconcealed"],
["property", "undescribed"],
["property", "unlit"],
["property", "unlocked"],
["property", "unmarked for listing"],
["property", "unmentioned"],
["property", "unopenable"],
["property", "untouchable"],
["property", "unvisited"],
["property", "variable"],
["property", "visible"],
["property", "visited"],
["property", "wearable"],
["property", "worn"]
]

----------------------------------------------------

Checks for properties.
Loading

0 comments on commit a23f9b6

Please sign in to comment.