~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/nix/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\"b\\ar"
 
3
"f''o'o'\"bar"
 
4
"foo
 
5
bar"
 
6
"foo ${ 42 } baz"
 
7
"foo \${ 42 } baz"
 
8
 
 
9
''''
 
10
''
 
11
foo
 
12
bar
 
13
''
 
14
''
 
15
f'oo'''ba'r
 
16
foo ${ 42 } baz
 
17
foo ''${ 42 } baz
 
18
''
 
19
 
 
20
----------------------------------------------------
 
21
 
 
22
[
 
23
        ["string", ["\"\""]],
 
24
        ["string", ["\"foo\\\"b\\\\ar\""]],
 
25
        ["string", ["\"f''o'o'\\\"bar\""]],
 
26
        ["string", ["\"foo\r\nbar\""]],
 
27
        ["string", [
 
28
                "\"foo ",
 
29
                ["interpolation", [
 
30
                        ["antiquotation", "$"],
 
31
                        ["punctuation", "{"],
 
32
                        ["number", "42"],
 
33
                        ["punctuation", "}"]
 
34
                ]],
 
35
                " baz\""
 
36
        ]],
 
37
        ["string", ["\"foo \\${ 42 } baz\""]],
 
38
 
 
39
        ["string", ["''''"]],
 
40
        ["string", ["''\r\nfoo\r\nbar\r\n''"]],
 
41
        ["string", [
 
42
                "''\r\nf'oo'''ba'r\r\nfoo ",
 
43
                ["interpolation", [
 
44
                        ["antiquotation", "$"],
 
45
                        ["punctuation", "{"],
 
46
                        ["number", "42"],
 
47
                        ["punctuation", "}"]
 
48
                ]],
 
49
                " baz\r\nfoo ''${ 42 } baz\r\n''"
 
50
        ]]
 
51
]
 
52
 
 
53
----------------------------------------------------
 
54
 
 
55
Checks for strings and string interpolation.
 
56
Also checks that escaped interpolations are not interpreted.
 
 
b'\\ No newline at end of file'