~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/jade/flow-control_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
each val, index in [1,2,3]
 
2
 
 
3
if foo
 
4
else if bar
 
5
else
 
6
 
 
7
unless foo
 
8
 
 
9
while n < 4
 
10
 
 
11
case foo
 
12
        when "bar"
 
13
        default
 
14
 
 
15
----------------------------------------------------
 
16
 
 
17
[
 
18
        ["flow-control", [
 
19
                ["each", [
 
20
                        ["keyword", "each"],
 
21
                        " val",
 
22
                        ["punctuation", ","],
 
23
                        " index ",
 
24
                        ["keyword", "in"]
 
25
                ]],
 
26
                ["punctuation", "["],
 
27
                ["number", "1"],
 
28
                ["punctuation", ","],
 
29
                ["number", "2"],
 
30
                ["punctuation", ","],
 
31
                ["number", "3"],
 
32
                ["punctuation", "]"]
 
33
        ]],
 
34
 
 
35
        ["flow-control", [
 
36
                ["branch", "if"],
 
37
                " foo"
 
38
        ]],
 
39
        ["flow-control", [
 
40
        ["branch", "else"],
 
41
        ["keyword", "if"],
 
42
        " bar"
 
43
    ]],
 
44
    ["flow-control", [
 
45
        ["branch", "else"]
 
46
    ]],
 
47
 
 
48
    ["flow-control", [
 
49
        ["branch", "unless"],
 
50
        " foo"
 
51
    ]],
 
52
 
 
53
    ["flow-control", [
 
54
        ["branch", "while"],
 
55
        " n ",
 
56
        ["operator", "<"],
 
57
        ["number", "4"]
 
58
    ]],
 
59
 
 
60
    ["flow-control", [
 
61
        ["branch", "case"],
 
62
        " foo"
 
63
    ]],
 
64
    ["flow-control", [
 
65
        ["branch", "when"],
 
66
        ["string", "\"bar\""]
 
67
    ]],
 
68
    ["flow-control", [
 
69
        ["branch", "default"]
 
70
    ]]
 
71
]
 
72
 
 
73
----------------------------------------------------
 
74
 
 
75
Checks for all flow-control structures.
 
 
b'\\ No newline at end of file'