Lines Matching full:shouldbe
27 shouldBe("regexp1.exec('abc')", "['ab','a','b']");
30 shouldBe("regexp2.exec('abacadabe')", "['abe','ab','b','b']");
33 shouldBe("regexp3.exec('abacadabe')", "['abe','ab','b',undefined]");
36 shouldBe("regexp4.exec('abacadabe')", "['abe','ab','b',undefined]");
39 shouldBe("regexp5.exec('abacadabe')", "['abe','ab','b','b',undefined,undefined]");
42 shouldBe("regexp6.exec('abcde')", "['ab','ab','b','b',undefined,undefined]");
45 shouldBe("regexp7.exec('abc')", "['abc','ab','b']");
48 shouldBe("regexp8.exec('bcaddxqy')" , "['qy','q','q','y']");
51 shouldBe("regexp9.exec('asdfjejgsdflaksdfjkeljghkjea')", "['a','a',undefined]");
54 shouldBe("regexp10.exec('asdfjejgsdflaksdfjkeljghat')", "['at']");
60 shouldBe("regexp12.exec('Seattle, WA to Buckley, WA')", "['Seattle, WA to Buckley, WA', undefined, 'Seattle', 'WA', undefined, 'Buckley', 'WA']");
63 shouldBe("regexp13.exec('zxcasd;fl\ ^AaaAAaaaf;lrlrzs')", "['AaaAAaaaf;lrlrzs',undefined,'AaaAAaaaf;lrlrzs']");
66 shouldBe("regexp14.exec('b')", "['b',undefined,'b']");
69 shouldBe("regexp15.exec('abdf')", "['abdf',undefined,'abd','f']");
72 shouldBe("regexp16.exec('abc')", "['ab','a','b']");
75 shouldBe("regexp17.exec('bcaDxqy')", "['Dx','D']");
78 shouldBe("regexp18.exec('Hello: World')", "['Hello:',':']");
81 shouldBe("regexp19.exec('barrel')", "['bar','']");
84 shouldBe("regexp20.exec('barrel')", "['barrel','rel']");
85 shouldBe("regexp20.exec('2barrel')", "['2barrel','rel']");
88 shouldBe("regexp21.exec('abc')", "['ab','ab','b']");
94 shouldBe("regexp23.exec('<html xmlns=\"http://www.w3.org/1999/xhtml\"')", "['\"http://www.w3.org/1999/xhtml\"']");
100 shouldBe("regexp25.exec('this is a test')", "['this','this',undefined]");
104 shouldBe("regexp26.exec('aaa')", "['aaa',undefined,undefined]");
130 shouldBe("regexp27.exec('file:///Users/Someone/Desktop/HelloWorld/index.html')", "['file:///Users/Someone/Desktop/HelloWorld/index.html','file','//','',undefined,undefined,undefined,'',undefined,'/Users/Someone/Desktop/HelloWorld/index.html',undefined,undefined]");
149 shouldBe("regexp28.exec('file:///Users/Someone/Desktop/HelloWorld/index.html')", "['file:','file',undefined,undefined,undefined,undefined,undefined]");
164 shouldBe("regexp33.exec('> <head>')","['>',undefined,undefined,'>']");
168 shouldBe("regexp34.exec('btn-abc')","['btn-abc']");
171 shouldBe("regexp34.exec('XX btn-abc')","['btn-abc']");
174 shouldBe("regexp35.exec('ax')", "['ax','ax','a','x']");
176 shouldBe("regexp35.exec('axxx')", "['axxx','axxx','a','xxx']");
177 shouldBe("regexp35.exec('bx')", "['bx','bx','b','x']");
179 shouldBe("regexp35.exec('bxxx')", "['bxxx','bxxx','b','xxx']");
182 shouldBe("regexp36.exec('/2011')", "['/2011','/2011','/','2011']");
183 shouldBe("regexp36.exec('/11')", "['/11','/11','/','11']");
187 shouldBe("regexp37.exec('7/4/1776')", "['7/4/1776','7','/','4','/1776','/','1776']");
188 shouldBe("regexp37.exec('07-04-1776')", "['07-04-1776','07','-','04','-1776','-','1776']");
191 shouldBe("regexp38.exec('xx')", "['xx','xx','xx']");
192 shouldBe("regexp38.exec('b')", "['b','b',undefined]");
193 shouldBe("regexp38.exec('z')", "['z','z',undefined]");
194 shouldBe("regexp38.exec('')", "['','',undefined]");
197 shouldBe("regexp39.exec('')", "['',undefined,undefined]");
198 shouldBe("regexp39.exec('8')", "['8','8',undefined]");
199 shouldBe("regexp39.exec('zP')", "['',undefined,undefined]");
202 shouldBe("regexp40.exec('')", "['',undefined,undefined,undefined,'']");
203 shouldBe("regexp40.exec('8')", "['8','8','8',undefined,'']");
204 shouldBe("regexp40.exec('zPz')", "['',undefined,undefined,undefined,'']");
205 shouldBe("regexp40.exec('zPPz')", "['',undefined,undefined,undefined,'']");
206 shouldBe("regexp40.exec('zPPPz')", "['',undefined,undefined,undefined,'']");
207 shouldBe("regexp40.exec('zPPPPz')", "['',undefined,undefined,undefined,'']");
210 shouldBe("regexp41.exec('Here is a link: http://www.acme.com/our_products/index.html. That is all we want!')", "['http://www.acme.com/our_products/index.html','http://www.acme.com/our_products/index.html','http://','l',undefined]");
213 shouldBe("regexp42.exec('')", "['',undefined,undefined]");
214 shouldBe("regexp42.exec('4')", "['4','4','4']");
215 shouldBe("regexp42.exec('4321')", "['4','4','4']");
220 shouldBe("regexp43.exec('SSS')", "['']");
223 shouldBe("regexp44.exec('SSS')", "['',undefined]");
230 shouldBe("regexp46.exec('pk')", "['pk',undefined,undefined]");
231 shouldBe("regexp46.exec('Xw555')", "['w555','w',undefined]");
232 shouldBe("regexp46.exec('Xw55pk5')", "['w','w','']");
235 shouldBe("regexp47.exec('/www.acme.com/this/is/a/path/file.txt')", "['/www.acme.com/this/is/a/path/file.txt','/www.acme.com/this/is/a/path/file.txt',undefined]");
239 shouldBe("regexp48.exec('http://www.acme.com/this/is/a/path/file.txt')", "['http://www.acme.com/this/is/a/path/file.txt','http','www.acme.com',undefined,'this/is/a/path/file.txt',undefined,undefined]");
243 shouldBe("regexp49.exec('http://www.acme.com/this/is/a/path/file.txt')", "['http://www.acme.com/this/is/a/path/file.txt',undefined,undefined,'http','www.acme.com',undefined,'this/is/a/path/file.txt',undefined,undefined]");
247 shouldBe("regexp50.exec('abbbbbbbbbbbbbbbbbbbbbbbbbbbbcx')", "['abbbbbbbbbbbbbbbbbbbbbbbbbbbbcx', 'abbbbbbbbbbbbbbbbbbbbbbbbbbbbc', 'a']");
248 shouldBe("regexp50.exec('dx')", "['dx', 'd', undefined]");
253 shouldBe("regexp51.exec(s)", "[')\x9e{-,}P{Any}',')',undefined]");
256 shouldBe("'Hi Bob'.match(regexp52)", "['Bob',undefined,'Bob',undefined,undefined]");
260 shouldBe("regexp53.exec('#')", "['',undefined,'']");
262 shouldBe("regexp54.exec('#')", "['','',undefined,undefined,'']");
264 shouldBe("regexp55.exec('#')", "['','']");
268 shouldBe("regexp56.exec('a')", "['','']");
270 shouldBe("regexp57.exec('a')", "['a','a']");
274 shouldBe("regexp58.exec('badbc')", "['a']");
276 shouldBe("'Y aaa X Match1 Y aaa Y Match2 Z'.match(regexp59)", "['X Match1 Y','Y Match2 Z']");