~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/kotlin/interpolation_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
"$foo ${bar} ${'$'} ${foobar()}"
 
2
"""
 
3
$foo ${bar}
 
4
${'$'} ${foobar()}
 
5
"""
 
6
 
 
7
----------------------------------------------------
 
8
 
 
9
[
 
10
        ["string", [
 
11
                "\"",
 
12
                ["interpolation", "$foo"],
 
13
                ["interpolation", [
 
14
                        ["delimiter", "${"], "bar", ["delimiter", "}"]
 
15
                ]],
 
16
                ["interpolation", [
 
17
                        ["delimiter", "${"], ["string", "'$'"], ["delimiter", "}"]
 
18
                ]],
 
19
                ["interpolation", [
 
20
                        ["delimiter", "${"],
 
21
                        ["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
 
22
                        ["delimiter", "}"]
 
23
                ]],
 
24
                "\""
 
25
        ]],
 
26
        ["raw-string", [
 
27
                "\"\"\"\r\n",
 
28
                ["interpolation", "$foo"],
 
29
                ["interpolation", [
 
30
                        ["delimiter", "${"], "bar", ["delimiter", "}"]
 
31
                ]],
 
32
                ["interpolation", [
 
33
                        ["delimiter", "${"], ["string", "'$'"], ["delimiter", "}"]
 
34
                ]],
 
35
                ["interpolation", [
 
36
                        ["delimiter", "${"],
 
37
                        ["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
 
38
                        ["delimiter", "}"]
 
39
                ]],
 
40
                "\r\n\"\"\""
 
41
        ]]
 
42
]
 
43
 
 
44
----------------------------------------------------
 
45
 
 
46
Checks for string interpolation.
 
 
b'\\ No newline at end of file'