~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/coffeescript/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
""
 
6
"foo"
 
7
"foo\
 
8
bar"
 
9
"foo #{interpolation} bar"
 
10
''''''
 
11
'''foo'''
 
12
'''foo
 
13
bar'''
 
14
 
 
15
""""""
 
16
"""foo"""
 
17
"""foo
 
18
bar"""
 
19
"""foo #{interpolation} bar"""
 
20
 
 
21
----------------------------------------------------
 
22
 
 
23
[
 
24
        ["string", "''"],
 
25
        ["string", "'foo'"],
 
26
        ["string", "'foo\\\r\nbar'"],
 
27
        ["string", ["\"\""]],
 
28
        ["string", ["\"foo\""]],
 
29
        ["string", ["\"foo\\\r\nbar\""]],
 
30
        ["string", [
 
31
                "\"foo ",
 
32
                ["interpolation", "#{interpolation}"],
 
33
                " bar\""
 
34
        ]],
 
35
 
 
36
        ["multiline-string", "''''''"],
 
37
        ["multiline-string", "'''foo'''"],
 
38
        ["multiline-string", "'''foo\r\nbar'''"],
 
39
        ["multiline-string", ["\"\"\"\"\"\""]],
 
40
        ["multiline-string", ["\"\"\"foo\"\"\""]],
 
41
        ["multiline-string", ["\"\"\"foo\r\nbar\"\"\""]],
 
42
        ["multiline-string", [
 
43
                "\"\"\"foo ",
 
44
                ["interpolation", "#{interpolation}"],
 
45
                " bar\"\"\""
 
46
        ]]
 
47
]
 
48
 
 
49
----------------------------------------------------
 
50
 
 
51
Checks for single-line and multi-line strings and block strings.
 
52
Also checks for string interpolation inside double-quoted strings.
 
 
b'\\ No newline at end of file'