~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/smarty/variable_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}
 
2
{$foo_bar42}
 
3
{#pageTitle#}
 
4
{$foo.bar.baz}
 
5
{$foo->bar->baz}
 
6
{$foo[row]}
 
7
 
 
8
----------------------------------------------------
 
9
 
 
10
[
 
11
        ["smarty", [
 
12
                ["delimiter", "{"],
 
13
                ["variable", "$foo"],
 
14
                ["delimiter", "}"]
 
15
        ]],
 
16
        ["smarty", [
 
17
                ["delimiter", "{"],
 
18
                ["variable", "$foo_bar42"],
 
19
                ["delimiter", "}"]
 
20
        ]],
 
21
        ["smarty", [
 
22
                ["delimiter", "{"],
 
23
                ["variable", "#pageTitle#"],
 
24
                ["delimiter", "}"]
 
25
        ]],
 
26
        ["smarty", [
 
27
                ["delimiter", "{"],
 
28
                ["variable", "$foo"],
 
29
                ["punctuation", "."],
 
30
                ["variable", "bar"],
 
31
                ["punctuation", "."],
 
32
                ["variable", "baz"],
 
33
                ["delimiter", "}"]
 
34
        ]],
 
35
        ["smarty", [
 
36
                ["delimiter", "{"],
 
37
                ["variable", "$foo"],
 
38
                ["punctuation", "->"],
 
39
                ["variable", "bar"],
 
40
                ["punctuation", "->"],
 
41
                ["variable", "baz"],
 
42
                ["delimiter", "}"]
 
43
        ]],
 
44
        ["smarty", [
 
45
                ["delimiter", "{"],
 
46
                ["variable", "$foo"],
 
47
                ["punctuation", "["],
 
48
                ["variable", "row"],
 
49
                ["punctuation", "]"],
 
50
                ["delimiter", "}"]
 
51
        ]]
 
52
]
 
53
 
 
54
----------------------------------------------------
 
55
 
 
56
Checks for variables.
 
 
b'\\ No newline at end of file'