~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/swift/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
"fo\"o"
 
3
"foo\
 
4
bar"
 
5
"foo \(42)"
 
6
"foo \(f("bar"))"
 
7
 
 
8
----------------------------------------------------
 
9
 
 
10
[
 
11
        ["string", ["\"\""]],
 
12
        ["string", ["\"fo\\\"o\""]],
 
13
        ["string", ["\"foo\\\r\nbar\""]],
 
14
        ["string", [
 
15
                "\"foo ",
 
16
                ["interpolation", [
 
17
                        ["delimiter", "\\("],
 
18
                        ["number", "42"],
 
19
                        ["delimiter", ")"]
 
20
                ]],
 
21
                "\""
 
22
        ]],
 
23
        ["string", [
 
24
                "\"foo ",
 
25
                ["interpolation", [
 
26
                        ["delimiter", "\\("],
 
27
                        ["function", "f"],
 
28
                        ["punctuation", "("],
 
29
                        ["string", ["\"bar\""]],
 
30
                        ["punctuation", ")"],
 
31
                        ["delimiter", ")"]
 
32
                ]],
 
33
                "\""
 
34
        ]]
 
35
]
 
36
 
 
37
----------------------------------------------------
 
38
 
 
39
Checks for strings and string interpolation.
 
 
b'\\ No newline at end of file'