Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: lib/src/prism/tests/languages/perl/regex_feature.test

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 m//
2 qr!foo\!bar!msix
3 m,foo
4 bar,aa
5
6 qr aa
7 m afoob\araaa
8 qr pfoo
9 barpxpn
10
11 m()c
12 qr(foo\(\)bar)u
13 m(foo
14 bar)l
15
16 qr{}d
17 m{foo\{\}bar}
18 qr{foo
19 bar}
20
21 m[]
22 qr[foo\[\]bar]
23 m[foo
24 bar]
25
26 qr<>s
27 m<foo\<\>bar>i
28 qr<foo
29 bar>x
30
31 s///
32 tr%foo\%bar%baz%c
33 y!foo
34 bar!foo
35 baz!d
36
37 s kkkmsix
38 tr afoob\arab\azas
39 y pfoo
40 barpfoo
41 bazpr
42
43 s()()
44 tr(foo\(bar)(ba\)z)
45 y(foo
46 bar)(foo
47 baz)csr
48
49 s{}{}
50 tr{foo\{bar}{ba\}z}
51 y{foo
52 bar}{foo
53 baz}
54
55 y[][]
56 s[foo\[bar][ba\]z]u
57 y[foo
58 bar][foo
59 baz]
60
61 tr<><>c
62 y<foo\<bar><ba\>a>
63 s<foo
64 bar><foo
65 baz>
66
67 //
68 /foo/gsx
69 /foo\/bar/n
70
71 ----------------------------------------------------
72
73 [
74 ["regex", "m//"],
75 ["regex", "qr!foo\\!bar!msix"],
76 ["regex", "m,foo\r\nbar,aa"],
77
78 ["regex", "qr aa"],
79 ["regex", "m afoob\\araaa"],
80 ["regex", "qr pfoo\r\nbarpxpn"],
81
82 ["regex", "m()c"],
83 ["regex", "qr(foo\\(\\)bar)u"],
84 ["regex", "m(foo\r\nbar)l"],
85
86 ["regex", "qr{}d"],
87 ["regex", "m{foo\\{\\}bar}"],
88 ["regex", "qr{foo\r\nbar}"],
89
90 ["regex", "m[]"],
91 ["regex", "qr[foo\\[\\]bar]"],
92 ["regex", "m[foo\r\nbar]"],
93
94 ["regex", "qr<>s"],
95 ["regex", "m<foo\\<\\>bar>i"],
96 ["regex", "qr<foo\r\nbar>x"],
97
98 ["regex", "s///"],
99 ["regex", "tr%foo\\%bar%baz%c"],
100 ["regex", "y!foo\r\nbar!foo\r\nbaz!d"],
101
102 ["regex", "s kkkmsix"],
103 ["regex", "tr afoob\\arab\\azas"],
104 ["regex", "y pfoo\r\nbarpfoo\r\nbazpr"],
105
106 ["regex", "s()()"],
107 ["regex", "tr(foo\\(bar)(ba\\)z)"],
108 ["regex", "y(foo\r\nbar)(foo\r\nbaz)csr"],
109
110 ["regex", "s{}{}"],
111 ["regex", "tr{foo\\{bar}{ba\\}z}"],
112 ["regex", "y{foo\r\nbar}{foo\r\nbaz}"],
113
114 ["regex", "y[][]"],
115 ["regex", "s[foo\\[bar][ba\\]z]u"],
116 ["regex", "y[foo\r\nbar][foo\r\nbaz]"],
117
118 ["regex", "tr<><>c"],
119 ["regex", "y<foo\\<bar><ba\\>a>"],
120 ["regex", "s<foo\r\nbar><foo\r\nbaz>"],
121
122 ["regex", "//"],
123 ["regex", "/foo/gsx"],
124 ["regex", "/foo\\/bar/n"]
125 ]
126
127 ----------------------------------------------------
128
129 Checks for regex and regex quote-like operators.
OLDNEW
« no previous file with comments | « lib/src/prism/tests/languages/perl/operator_feature.test ('k') | lib/src/prism/tests/languages/perl/string_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698