Skip to content

Commit ee83c42

Browse files
committed
Added test cases for subtraction --.
1 parent 381b5eb commit ee83c42

File tree

2 files changed

+331
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)