~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/inform7/string_feature.test

  • Committer: Didier Roche
  • Date: 2016-05-10 23:09:11 UTC
  • Revision ID: didier.roche@canonical.com-20160510230911-c7xr490zrj3yrzxd
New version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
""
 
2
"foo"
 
3
"foo
 
4
bar"
 
5
"[if the player is in Center Ring]A magician's booth stands in the corner, painted dark blue with glittering gold stars.[otherwise if the magician's booth is closed]A crack of light indicates the way back out to the center ring.[otherwise]The door stands open to the outside.[end if]"
 
6
 
 
7
----------------------------------------------------
 
8
 
 
9
[
 
10
        ["string", ["\"\""]],
 
11
        ["string", ["\"foo\""]],
 
12
        ["string", ["\"foo\r\nbar\""]],
 
13
        ["string", [
 
14
                "\"",
 
15
                ["substitution", [
 
16
                        ["delimiter", "["],
 
17
                        ["keyword", "if"], ["text", "the"],
 
18
                        ["type", "player"], ["verb", "is"],
 
19
                        ["position", "in"], ["text", "Center Ring"],
 
20
                        ["delimiter", "]"]
 
21
                ]],
 
22
                "A magician's booth stands in the corner, painted dark blue with glittering gold stars.",
 
23
                ["substitution", [
 
24
                        ["delimiter", "["],
 
25
                        ["keyword", "otherwise"], ["keyword", "if"],
 
26
                        ["text", "the magician's booth"],
 
27
                        ["verb", "is"],
 
28
                        ["property", "closed"],
 
29
                        ["delimiter", "]"]
 
30
                ]],
 
31
                "A crack of light indicates the way back out to the center ring.",
 
32
                ["substitution", [
 
33
                        ["delimiter", "["],
 
34
                        ["keyword", "otherwise"],
 
35
                        ["delimiter", "]"]
 
36
                ]],
 
37
                "The door stands open to the outside.",
 
38
                ["substitution", [
 
39
                        ["delimiter", "["],
 
40
                        ["keyword", "end if"],
 
41
                        ["delimiter", "]"]
 
42
                ]],
 
43
                "\""
 
44
        ]]
 
45
]
 
46
 
 
47
----------------------------------------------------
 
48
 
 
49
Checks for strings and text substitution.
 
 
b'\\ No newline at end of file'