~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/parser/expression_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
((3-(9-2))*4)
 
2
^eval(4+2)
 
3
 
 
4
<div class="foo-^eval(4+2)">
 
5
 
 
6
----------------------------------------------------
 
7
 
 
8
[
 
9
        ["expression", [
 
10
                ["punctuation", "("],
 
11
                ["punctuation", "("],
 
12
                ["number", "3"],
 
13
                ["operator", "-"],
 
14
                ["punctuation", "("],
 
15
                ["number", "9"],
 
16
                ["operator", "-"],
 
17
                ["number", "2"],
 
18
                ["punctuation", ")"],
 
19
                ["punctuation", ")"],
 
20
                ["operator", "*"],
 
21
                ["number", "4"],
 
22
                ["punctuation", ")"]
 
23
        ]],
 
24
        ["keyword", "^eval"],
 
25
 
 
26
        ["expression", [
 
27
                ["punctuation", "("],
 
28
                ["number", "4"],
 
29
                ["operator", "+"],
 
30
                ["number", "2"],
 
31
                ["punctuation", ")"]
 
32
        ]],
 
33
 
 
34
        ["tag", [
 
35
                ["tag", [
 
36
                        ["punctuation", "<"],
 
37
                        "div"
 
38
                ]],
 
39
                ["attr-name", ["class"]],
 
40
                ["attr-value", [
 
41
                        ["punctuation", "="],
 
42
                        ["punctuation", "\""],
 
43
                        "foo-",
 
44
                        ["keyword", "^eval"],
 
45
                        ["expression", [
 
46
                                ["punctuation", "("],
 
47
                                ["number", "4"], ["operator", "+"], ["number", "2"],
 
48
                                ["punctuation", ")"]
 
49
                        ]],
 
50
                        ["punctuation", "\""]
 
51
                ]],
 
52
                ["punctuation", ">"]
 
53
        ]]
 
54
]
 
55
 
 
56
----------------------------------------------------
 
57
 
 
58
Checks for expressions, up to 3 levels of depth.
 
 
b'\\ No newline at end of file'