Skip to content

Commit 1e05f32

Browse files
committed
Added test cases for union.
1 parent 3664d50 commit 1e05f32

File tree

2 files changed

+398
-0
lines changed

2 files changed

+398
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/[\p{Script_Extensions=Greek}\p{RGI_Emoji}]/v;
2+
/[[abc][cbd]]/v;
3+
/[\p{Emoji}\q{a&}byz]/v;
4+
/[\q{\\\}a&}byz]/v;
5+
/[\q{\\}]/v;
6+
/[\q{abc|cbd|\}}]/v;
Lines changed: 392 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,392 @@
1+
#10000=@"/union.js;sourcefile"
2+
files(#10000,"/union.js")
3+
#10001=@"/;folder"
4+
folders(#10001,"/")
5+
containerparent(#10001,#10000)
6+
#10002=@"loc,{#10000},0,0,0,0"
7+
locations_default(#10002,#10000,0,0,0,0)
8+
hasLocation(#10000,#10002)
9+
#20000=@"global_scope"
10+
scopes(#20000,0)
11+
#20001=@"script;{#10000},1,1"
12+
#20002=*
13+
lines(#20002,#20001,"/[\p{Script_Extensions=Greek}\p{RGI_Emoji}]/v;","
14+
")
15+
#20003=@"loc,{#10000},1,1,1,46"
16+
locations_default(#20003,#10000,1,1,1,46)
17+
hasLocation(#20002,#20003)
18+
#20004=*
19+
lines(#20004,#20001,"/[[abc][cbd]]/v;","
20+
")
21+
#20005=@"loc,{#10000},2,1,2,16"
22+
locations_default(#20005,#10000,2,1,2,16)
23+
hasLocation(#20004,#20005)
24+
#20006=*
25+
lines(#20006,#20001,"/[\p{Emoji}\q{a&}byz]/v;","
26+
")
27+
#20007=@"loc,{#10000},3,1,3,24"
28+
locations_default(#20007,#10000,3,1,3,24)
29+
hasLocation(#20006,#20007)
30+
#20008=*
31+
lines(#20008,#20001,"/[\q{\\\}a&}byz]/v;","
32+
")
33+
#20009=@"loc,{#10000},4,1,4,19"
34+
locations_default(#20009,#10000,4,1,4,19)
35+
hasLocation(#20008,#20009)
36+
#20010=*
37+
lines(#20010,#20001,"/[\q{\\}]/v;","
38+
")
39+
#20011=@"loc,{#10000},5,1,5,12"
40+
locations_default(#20011,#10000,5,1,5,12)
41+
hasLocation(#20010,#20011)
42+
#20012=*
43+
lines(#20012,#20001,"/[\q{abc|cbd|\}}]/v;","
44+
")
45+
#20013=@"loc,{#10000},6,1,6,20"
46+
locations_default(#20013,#10000,6,1,6,20)
47+
hasLocation(#20012,#20013)
48+
numlines(#20001,6,6,0)
49+
#20014=*
50+
tokeninfo(#20014,5,#20001,0,"/[\p{Script_Extensions=Greek}\p{RGI_Emoji}]/v")
51+
#20015=@"loc,{#10000},1,1,1,45"
52+
locations_default(#20015,#10000,1,1,1,45)
53+
hasLocation(#20014,#20015)
54+
#20016=*
55+
tokeninfo(#20016,8,#20001,1,";")
56+
#20017=@"loc,{#10000},1,46,1,46"
57+
locations_default(#20017,#10000,1,46,1,46)
58+
hasLocation(#20016,#20017)
59+
#20018=*
60+
tokeninfo(#20018,5,#20001,2,"/[[abc][cbd]]/v")
61+
#20019=@"loc,{#10000},2,1,2,15"
62+
locations_default(#20019,#10000,2,1,2,15)
63+
hasLocation(#20018,#20019)
64+
#20020=*
65+
tokeninfo(#20020,8,#20001,3,";")
66+
#20021=@"loc,{#10000},2,16,2,16"
67+
locations_default(#20021,#10000,2,16,2,16)
68+
hasLocation(#20020,#20021)
69+
#20022=*
70+
tokeninfo(#20022,5,#20001,4,"/[\p{Emoji}\q{a&}byz]/v")
71+
#20023=@"loc,{#10000},3,1,3,23"
72+
locations_default(#20023,#10000,3,1,3,23)
73+
hasLocation(#20022,#20023)
74+
#20024=*
75+
tokeninfo(#20024,8,#20001,5,";")
76+
#20025=@"loc,{#10000},3,24,3,24"
77+
locations_default(#20025,#10000,3,24,3,24)
78+
hasLocation(#20024,#20025)
79+
#20026=*
80+
tokeninfo(#20026,5,#20001,6,"/[\q{\\\}a&}byz]/v")
81+
#20027=@"loc,{#10000},4,1,4,18"
82+
locations_default(#20027,#10000,4,1,4,18)
83+
hasLocation(#20026,#20027)
84+
#20028=*
85+
tokeninfo(#20028,8,#20001,7,";")
86+
#20029=@"loc,{#10000},4,19,4,19"
87+
locations_default(#20029,#10000,4,19,4,19)
88+
hasLocation(#20028,#20029)
89+
#20030=*
90+
tokeninfo(#20030,5,#20001,8,"/[\q{\\}]/v")
91+
#20031=@"loc,{#10000},5,1,5,11"
92+
locations_default(#20031,#10000,5,1,5,11)
93+
hasLocation(#20030,#20031)
94+
#20032=*
95+
tokeninfo(#20032,8,#20001,9,";")
96+
#20033=@"loc,{#10000},5,12,5,12"
97+
locations_default(#20033,#10000,5,12,5,12)
98+
hasLocation(#20032,#20033)
99+
#20034=*
100+
tokeninfo(#20034,5,#20001,10,"/[\q{abc|cbd|\}}]/v")
101+
#20035=@"loc,{#10000},6,1,6,19"
102+
locations_default(#20035,#10000,6,1,6,19)
103+
hasLocation(#20034,#20035)
104+
#20036=*
105+
tokeninfo(#20036,8,#20001,11,";")
106+
#20037=@"loc,{#10000},6,20,6,20"
107+
locations_default(#20037,#10000,6,20,6,20)
108+
hasLocation(#20036,#20037)
109+
#20038=*
110+
tokeninfo(#20038,0,#20001,12,"")
111+
#20039=@"loc,{#10000},7,1,7,0"
112+
locations_default(#20039,#10000,7,1,7,0)
113+
hasLocation(#20038,#20039)
114+
toplevels(#20001,0)
115+
#20040=@"loc,{#10000},1,1,7,0"
116+
locations_default(#20040,#10000,1,1,7,0)
117+
hasLocation(#20001,#20040)
118+
#20041=*
119+
stmts(#20041,2,#20001,0,"/[\p{Sc ... ji}]/v;")
120+
hasLocation(#20041,#20003)
121+
stmt_containers(#20041,#20001)
122+
#20042=*
123+
exprs(#20042,5,#20041,0,"/[\p{Sc ... oji}]/v")
124+
hasLocation(#20042,#20015)
125+
enclosing_stmt(#20042,#20041)
126+
expr_containers(#20042,#20001)
127+
literals("/[\p{Script_Extensions=Greek}\p{RGI_Emoji}]/v","/[\p{Script_Extensions=Greek}\p{RGI_Emoji}]/v",#20042)
128+
#20043=*
129+
regexpterm(#20043,23,#20042,0,"[\p{Script_Extensions=Greek}\p{RGI_Emoji}]")
130+
#20044=@"loc,{#10000},1,2,1,43"
131+
locations_default(#20044,#10000,1,2,1,43)
132+
hasLocation(#20043,#20044)
133+
#20045=*
134+
regexpterm(#20045,27,#20043,0,"\p{Script_Extensions=Greek}")
135+
#20046=@"loc,{#10000},1,3,1,29"
136+
locations_default(#20046,#10000,1,3,1,29)
137+
hasLocation(#20045,#20046)
138+
unicode_property_escapename(#20045,"Script_Extensions")
139+
unicode_property_escapevalue(#20045,"Greek")
140+
#20047=*
141+
regexpterm(#20047,27,#20043,1,"\p{RGI_Emoji}")
142+
#20048=@"loc,{#10000},1,30,1,42"
143+
locations_default(#20048,#10000,1,30,1,42)
144+
hasLocation(#20047,#20048)
145+
unicode_property_escapename(#20047,"RGI_Emoji")
146+
#20049=*
147+
stmts(#20049,2,#20001,1,"/[[abc][cbd]]/v;")
148+
hasLocation(#20049,#20005)
149+
stmt_containers(#20049,#20001)
150+
#20050=*
151+
exprs(#20050,5,#20049,0,"/[[abc][cbd]]/v")
152+
hasLocation(#20050,#20019)
153+
enclosing_stmt(#20050,#20049)
154+
expr_containers(#20050,#20001)
155+
literals("/[[abc][cbd]]/v","/[[abc][cbd]]/v",#20050)
156+
#20051=*
157+
regexpterm(#20051,23,#20050,0,"[[abc][cbd]]")
158+
#20052=@"loc,{#10000},2,2,2,13"
159+
locations_default(#20052,#10000,2,2,2,13)
160+
hasLocation(#20051,#20052)
161+
#20053=*
162+
regexpterm(#20053,23,#20051,0,"[abc]")
163+
#20054=@"loc,{#10000},2,3,2,7"
164+
locations_default(#20054,#10000,2,3,2,7)
165+
hasLocation(#20053,#20054)
166+
#20055=*
167+
regexpterm(#20055,14,#20053,0,"a")
168+
#20056=@"loc,{#10000},2,4,2,4"
169+
locations_default(#20056,#10000,2,4,2,4)
170+
hasLocation(#20055,#20056)
171+
regexp_const_value(#20055,"a")
172+
#20057=*
173+
regexpterm(#20057,14,#20053,1,"b")
174+
#20058=@"loc,{#10000},2,5,2,5"
175+
locations_default(#20058,#10000,2,5,2,5)
176+
hasLocation(#20057,#20058)
177+
regexp_const_value(#20057,"b")
178+
#20059=*
179+
regexpterm(#20059,14,#20053,2,"c")
180+
#20060=@"loc,{#10000},2,6,2,6"
181+
locations_default(#20060,#10000,2,6,2,6)
182+
hasLocation(#20059,#20060)
183+
regexp_const_value(#20059,"c")
184+
#20061=*
185+
regexpterm(#20061,23,#20051,1,"[cbd]")
186+
#20062=@"loc,{#10000},2,8,2,12"
187+
locations_default(#20062,#10000,2,8,2,12)
188+
hasLocation(#20061,#20062)
189+
#20063=*
190+
regexpterm(#20063,14,#20061,0,"c")
191+
#20064=@"loc,{#10000},2,9,2,9"
192+
locations_default(#20064,#10000,2,9,2,9)
193+
hasLocation(#20063,#20064)
194+
regexp_const_value(#20063,"c")
195+
#20065=*
196+
regexpterm(#20065,14,#20061,1,"b")
197+
#20066=@"loc,{#10000},2,10,2,10"
198+
locations_default(#20066,#10000,2,10,2,10)
199+
hasLocation(#20065,#20066)
200+
regexp_const_value(#20065,"b")
201+
#20067=*
202+
regexpterm(#20067,14,#20061,2,"d")
203+
#20068=@"loc,{#10000},2,11,2,11"
204+
locations_default(#20068,#10000,2,11,2,11)
205+
hasLocation(#20067,#20068)
206+
regexp_const_value(#20067,"d")
207+
#20069=*
208+
stmts(#20069,2,#20001,2,"/[\p{Em ... byz]/v;")
209+
hasLocation(#20069,#20007)
210+
stmt_containers(#20069,#20001)
211+
#20070=*
212+
exprs(#20070,5,#20069,0,"/[\p{Em ... }byz]/v")
213+
hasLocation(#20070,#20023)
214+
enclosing_stmt(#20070,#20069)
215+
expr_containers(#20070,#20001)
216+
literals("/[\p{Emoji}\q{a&}byz]/v","/[\p{Emoji}\q{a&}byz]/v",#20070)
217+
#20071=*
218+
regexpterm(#20071,23,#20070,0,"[\p{Emoji}\q{a&}byz]")
219+
#20072=@"loc,{#10000},3,2,3,21"
220+
locations_default(#20072,#10000,3,2,3,21)
221+
hasLocation(#20071,#20072)
222+
#20073=*
223+
regexpterm(#20073,27,#20071,0,"\p{Emoji}")
224+
#20074=@"loc,{#10000},3,3,3,11"
225+
locations_default(#20074,#10000,3,3,3,11)
226+
hasLocation(#20073,#20074)
227+
unicode_property_escapename(#20073,"Emoji")
228+
#20075=*
229+
regexpterm(#20075,28,#20071,1,"\q{a&}")
230+
#20076=@"loc,{#10000},3,12,3,17"
231+
locations_default(#20076,#10000,3,12,3,17)
232+
hasLocation(#20075,#20076)
233+
#20077=*
234+
regexpterm(#20077,14,#20075,0,"a&")
235+
#20078=@"loc,{#10000},3,15,3,16"
236+
locations_default(#20078,#10000,3,15,3,16)
237+
hasLocation(#20077,#20078)
238+
regexp_const_value(#20077,"a&")
239+
#20079=*
240+
regexpterm(#20079,14,#20071,2,"b")
241+
#20080=@"loc,{#10000},3,18,3,18"
242+
locations_default(#20080,#10000,3,18,3,18)
243+
hasLocation(#20079,#20080)
244+
regexp_const_value(#20079,"b")
245+
#20081=*
246+
regexpterm(#20081,14,#20071,3,"y")
247+
#20082=@"loc,{#10000},3,19,3,19"
248+
locations_default(#20082,#10000,3,19,3,19)
249+
hasLocation(#20081,#20082)
250+
regexp_const_value(#20081,"y")
251+
#20083=*
252+
regexpterm(#20083,14,#20071,4,"z")
253+
#20084=@"loc,{#10000},3,20,3,20"
254+
locations_default(#20084,#10000,3,20,3,20)
255+
hasLocation(#20083,#20084)
256+
regexp_const_value(#20083,"z")
257+
#20085=*
258+
stmts(#20085,2,#20001,3,"/[\q{\\\}a&}byz]/v;")
259+
hasLocation(#20085,#20009)
260+
stmt_containers(#20085,#20001)
261+
#20086=*
262+
exprs(#20086,5,#20085,0,"/[\q{\\\}a&}byz]/v")
263+
hasLocation(#20086,#20027)
264+
enclosing_stmt(#20086,#20085)
265+
expr_containers(#20086,#20001)
266+
literals("/[\q{\\\}a&}byz]/v","/[\q{\\\}a&}byz]/v",#20086)
267+
#20087=*
268+
regexpterm(#20087,23,#20086,0,"[\q{\\\}a&}byz]")
269+
#20088=@"loc,{#10000},4,2,4,16"
270+
locations_default(#20088,#10000,4,2,4,16)
271+
hasLocation(#20087,#20088)
272+
#20089=*
273+
regexpterm(#20089,28,#20087,0,"\q{\\\}a&}")
274+
#20090=@"loc,{#10000},4,3,4,12"
275+
locations_default(#20090,#10000,4,3,4,12)
276+
hasLocation(#20089,#20090)
277+
#20091=*
278+
regexpterm(#20091,14,#20089,0,"\\\}a&")
279+
#20092=@"loc,{#10000},4,6,4,11"
280+
locations_default(#20092,#10000,4,6,4,11)
281+
hasLocation(#20091,#20092)
282+
regexp_const_value(#20091,"\\\}a&")
283+
#20093=*
284+
regexpterm(#20093,14,#20087,1,"b")
285+
#20094=@"loc,{#10000},4,13,4,13"
286+
locations_default(#20094,#10000,4,13,4,13)
287+
hasLocation(#20093,#20094)
288+
regexp_const_value(#20093,"b")
289+
#20095=*
290+
regexpterm(#20095,14,#20087,2,"y")
291+
#20096=@"loc,{#10000},4,14,4,14"
292+
locations_default(#20096,#10000,4,14,4,14)
293+
hasLocation(#20095,#20096)
294+
regexp_const_value(#20095,"y")
295+
#20097=*
296+
regexpterm(#20097,14,#20087,3,"z")
297+
#20098=@"loc,{#10000},4,15,4,15"
298+
locations_default(#20098,#10000,4,15,4,15)
299+
hasLocation(#20097,#20098)
300+
regexp_const_value(#20097,"z")
301+
#20099=*
302+
stmts(#20099,2,#20001,4,"/[\q{\\}]/v;")
303+
hasLocation(#20099,#20011)
304+
stmt_containers(#20099,#20001)
305+
#20100=*
306+
exprs(#20100,5,#20099,0,"/[\q{\\}]/v")
307+
hasLocation(#20100,#20031)
308+
enclosing_stmt(#20100,#20099)
309+
expr_containers(#20100,#20001)
310+
literals("/[\q{\\}]/v","/[\q{\\}]/v",#20100)
311+
#20101=*
312+
regexpterm(#20101,23,#20100,0,"[\q{\\}]")
313+
#20102=@"loc,{#10000},5,2,5,9"
314+
locations_default(#20102,#10000,5,2,5,9)
315+
hasLocation(#20101,#20102)
316+
#20103=*
317+
regexpterm(#20103,28,#20101,0,"\q{\\}")
318+
#20104=@"loc,{#10000},5,3,5,8"
319+
locations_default(#20104,#10000,5,3,5,8)
320+
hasLocation(#20103,#20104)
321+
#20105=*
322+
regexpterm(#20105,14,#20103,0,"\\")
323+
#20106=@"loc,{#10000},5,6,5,7"
324+
locations_default(#20106,#10000,5,6,5,7)
325+
hasLocation(#20105,#20106)
326+
regexp_const_value(#20105,"\\")
327+
#20107=*
328+
stmts(#20107,2,#20001,5,"/[\q{abc|cbd|\}}]/v;")
329+
hasLocation(#20107,#20013)
330+
stmt_containers(#20107,#20001)
331+
#20108=*
332+
exprs(#20108,5,#20107,0,"/[\q{abc|cbd|\}}]/v")
333+
hasLocation(#20108,#20035)
334+
enclosing_stmt(#20108,#20107)
335+
expr_containers(#20108,#20001)
336+
literals("/[\q{abc|cbd|\}}]/v","/[\q{abc|cbd|\}}]/v",#20108)
337+
#20109=*
338+
regexpterm(#20109,23,#20108,0,"[\q{abc|cbd|\}}]")
339+
#20110=@"loc,{#10000},6,2,6,17"
340+
locations_default(#20110,#10000,6,2,6,17)
341+
hasLocation(#20109,#20110)
342+
#20111=*
343+
regexpterm(#20111,28,#20109,0,"\q{abc|cbd|\}}")
344+
#20112=@"loc,{#10000},6,3,6,16"
345+
locations_default(#20112,#10000,6,3,6,16)
346+
hasLocation(#20111,#20112)
347+
#20113=*
348+
regexpterm(#20113,0,#20111,0,"abc|cbd|\}")
349+
#20114=@"loc,{#10000},6,6,6,15"
350+
locations_default(#20114,#10000,6,6,6,15)
351+
hasLocation(#20113,#20114)
352+
#20115=*
353+
regexpterm(#20115,14,#20113,0,"abc")
354+
#20116=@"loc,{#10000},6,6,6,8"
355+
locations_default(#20116,#10000,6,6,6,8)
356+
hasLocation(#20115,#20116)
357+
regexp_const_value(#20115,"abc")
358+
#20117=*
359+
regexpterm(#20117,14,#20113,1,"cbd")
360+
#20118=@"loc,{#10000},6,10,6,12"
361+
locations_default(#20118,#10000,6,10,6,12)
362+
hasLocation(#20117,#20118)
363+
regexp_const_value(#20117,"cbd")
364+
#20119=*
365+
regexpterm(#20119,14,#20113,2,"\}")
366+
#20120=@"loc,{#10000},6,14,6,15"
367+
locations_default(#20120,#10000,6,14,6,15)
368+
hasLocation(#20119,#20120)
369+
regexp_const_value(#20119,"\}")
370+
#20121=*
371+
entry_cfg_node(#20121,#20001)
372+
#20122=@"loc,{#10000},1,1,1,0"
373+
locations_default(#20122,#10000,1,1,1,0)
374+
hasLocation(#20121,#20122)
375+
#20123=*
376+
exit_cfg_node(#20123,#20001)
377+
hasLocation(#20123,#20039)
378+
successor(#20107,#20108)
379+
successor(#20108,#20123)
380+
successor(#20099,#20100)
381+
successor(#20100,#20107)
382+
successor(#20085,#20086)
383+
successor(#20086,#20099)
384+
successor(#20069,#20070)
385+
successor(#20070,#20085)
386+
successor(#20049,#20050)
387+
successor(#20050,#20069)
388+
successor(#20041,#20042)
389+
successor(#20042,#20049)
390+
successor(#20121,#20041)
391+
numlines(#10000,6,6,0)
392+
filetype(#10000,"javascript")

0 commit comments

Comments
 (0)