diff --git a/inform7/Tests/Test Cases/Parser.txt b/inform7/Tests/Test Cases/Parser.txt new file mode 100644 index 000000000..f0485a89c --- /dev/null +++ b/inform7/Tests/Test Cases/Parser.txt @@ -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. diff --git a/inform7/Tests/Test Cases/_Command_Scripts/Parser.txt b/inform7/Tests/Test Cases/_Command_Scripts/Parser.txt new file mode 100644 index 000000000..54d442b6a --- /dev/null +++ b/inform7/Tests/Test Cases/_Command_Scripts/Parser.txt @@ -0,0 +1,5 @@ +s +break bottle +und +undo +examine bottle diff --git a/inform7/Tests/Test Cases/_Results_Ideal/Parser.txt b/inform7/Tests/Test Cases/_Results_Ideal/Parser.txt new file mode 100644 index 000000000..3d0cf8e7c --- /dev/null +++ b/inform7/Tests/Test Cases/_Results_Ideal/Parser.txt @@ -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. + +> > \ No newline at end of file