mirror of
https://github.com/ganelson/inform.git
synced 2024-05-17 00:18:39 +03:00
Test case to pave way for further work on parser
This commit is contained in:
parent
4115a4bcf1
commit
79e6ebcf06
20
inform7/Tests/Test Cases/Parser.txt
Normal file
20
inform7/Tests/Test Cases/Parser.txt
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
Schloss Parserhof is a room. "Begun by Mad King Ludwig in 1878, this grand foyer was
|
||||||
|
projected to be the antechamber to a long series of exotic chambers in which the Austrian
|
||||||
|
monarch could have parser antics performed before his eyes. Build on a north-south
|
||||||
|
spinal passage, it has been found monotonous by some architectural critics."
|
||||||
|
|
||||||
|
[Note that there is no Test me with... here; instead, a separate command script is
|
||||||
|
provided for this test case, so that the UNDO command can be used in the course of
|
||||||
|
tests. The intention is that each test or set of tests should be in its own room, each
|
||||||
|
south of the previous one.]
|
||||||
|
|
||||||
|
Section 1 - Discard UNDO Testing
|
||||||
|
|
||||||
|
The Discard UNDO Testing Place is a room south of the Schloss.
|
||||||
|
|
||||||
|
The bottle is here. The bottle can be broken or unbroken.
|
||||||
|
The description of the bottle is "It's [if the bottle is broken]broken[else]unbroken[end if]."
|
||||||
|
|
||||||
|
Instead of attacking the unbroken bottle:
|
||||||
|
say "Smash!";
|
||||||
|
now the bottle is broken.
|
5
inform7/Tests/Test Cases/_Command_Scripts/Parser.txt
Normal file
5
inform7/Tests/Test Cases/_Command_Scripts/Parser.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
s
|
||||||
|
break bottle
|
||||||
|
und
|
||||||
|
undo
|
||||||
|
examine bottle
|
26
inform7/Tests/Test Cases/_Results_Ideal/Parser.txt
Normal file
26
inform7/Tests/Test Cases/_Results_Ideal/Parser.txt
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
Schloss Parserhof
|
||||||
|
Welcome
|
||||||
|
An Interactive Fiction
|
||||||
|
Release 1 / Serial number 160428 / Inform 7 v10.1.0 / D
|
||||||
|
|
||||||
|
Schloss Parserhof
|
||||||
|
Begun by Mad King Ludwig in 1878, this grand foyer was projected to be the antechamber to a long series of exotic chambers in which the Austrian monarch could have parser antics performed before his eyes. Build on a north-south spinal passage, it has been found monotonous by some architectural critics.
|
||||||
|
|
||||||
|
> > Discard UNDO Testing Place
|
||||||
|
Discard UNDO Testing Place
|
||||||
|
You can see a bottle here.
|
||||||
|
|
||||||
|
> > Discard UNDO Testing Place
|
||||||
|
Smash!
|
||||||
|
|
||||||
|
> > Discard UNDO Testing Place
|
||||||
|
That's not a verb I recognise.
|
||||||
|
|
||||||
|
> > Discard UNDO Testing Place
|
||||||
|
Discard UNDO Testing Place
|
||||||
|
[Previous turn undone.]
|
||||||
|
|
||||||
|
> > Discard UNDO Testing Place
|
||||||
|
It's broken.
|
||||||
|
|
||||||
|
> >
|
Loading…
Reference in a new issue