Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and test case for Mantis bug 2070
- Loading branch information
Showing
4 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Lab is a room. | ||
|
||
Explaining is an action out of world applying to one topic. | ||
Understand "explain [text]" as explaining. | ||
|
||
Report explaining: | ||
let L be the topic understood; | ||
repeat with I running from 1 to the number of rows in the Table of Explanations; | ||
choose row I in the Table of Explanations; | ||
if there is a subject entry: | ||
if L is the subject entry: | ||
say "Explanation here." | ||
|
||
Table of Explanations | ||
subject (text) | ||
"bug" |
11 changes: 11 additions & 0 deletions
11
inform7/Tests/Test Problems/_Results_Ideal/PM_LoopWithoutBody.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Inform 7 v10.1.0 has started. | ||
I've now read your source text, which is 73 words long. | ||
I've also read Basic Inform by Graham Nelson, which is 7691 words long. | ||
I've also read English Language by Graham Nelson, which is 2328 words long. | ||
I've also read Standard Rules by Graham Nelson, which is 32092 words long. | ||
Problem__ PM_LoopWithoutBody | ||
>--> You wrote 'repeat with I running from 1 to the number of rows in the | ||
Table of Explanations' (source text, line 8): but there doesn't seem to be | ||
any body to this phrase, in the way that a 'repeat', 'if' or 'while' is | ||
expected to have. | ||
Inform 7 has finished. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters