~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/javascript/function_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_bar()
 
3
f42()
 
4
_()
 
5
$()
 
6
ಠ_ಠ()
 
7
Ƞȡ_҇()
 
8
 
 
9
----------------------------------------------------
 
10
 
 
11
[
 
12
        ["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
 
13
        ["function", "foo_bar"], ["punctuation", "("], ["punctuation", ")"],
 
14
        ["function", "f42"], ["punctuation", "("], ["punctuation", ")"],
 
15
        ["function", "_"], ["punctuation", "("], ["punctuation", ")"],
 
16
        ["function", "$"], ["punctuation", "("], ["punctuation", ")"],
 
17
        ["function", "ಠ_ಠ"], ["punctuation", "("], ["punctuation", ")"],
 
18
        ["function", "Ƞȡ_҇"], ["punctuation", "("], ["punctuation", ")"]
 
19
]
 
20
 
 
21
----------------------------------------------------
 
22
 
 
23
Checks for functions. Also checks for unicode characters in identifiers.