Lines Matching refs:assert
15 assert (JSON.stringify (/(?:(a)*){3,}/.exec("aaaab")) === '["aaaa",null]');
16 assert (JSON.stringify (/((a)*){3,}/.exec("aaaab")) === '["aaaa","",null]');
17 assert (JSON.stringify (/((a)+){3,}/.exec("aaaab")) === '["aaaa","a","a"]');
18 assert (JSON.stringify (/((.)*){3,}/.exec("abcd")) === '["abcd","",null]');
19 assert (JSON.stringify (/((.)+){3,}/.exec("abcd")) === '["abcd","d","d"]');
21 assert (JSON.stringify (/((.){1,2}){1,2}/.exec("abc")) === '["abc","c","c"]');
22 assert (JSON.stringify (/(?:(a)*?)asd/.exec("aaasd")) === '["aaasd","a"]');
23 assert (JSON.stringify (/(?:(a)*)asd/.exec("aaasd")) === '["aaasd","a"]');
25 assert (JSON.stringify (/(.)*((a)*|(b)*)/.exec("ab")) === '["ab","b","",null,null]');
26 assert (JSON.stringify (/(.)*((x)|(y))+/.exec("xy")) === '["xy","x","y",null,"y"]');
27 assert (JSON.stringify (/(.)*((y)|(x))+/.exec("xy")) === '["xy","x","y","y",null]');
29 assert (JSON.stringify (/((?:a)*)/.exec("aaaad")) === '["aaaa","aaaa"]');
30 assert (JSON.stringify (/((y)+|x)+/.exec("x")) === '["x","x",null]');
31 assert (JSON.stringify (/((?:y)*|x)+/.exec("x")) === '["x","x"]');
32 assert (JSON.stringify (/((y)*|x)+/.exec("x")) === '["x","x",null]');
33 assert (JSON.stringify (/((y)*|x)*/.exec("x")) === '["x","x",null]');
34 assert (JSON.stringify (/(?:(y)*|x)*/.exec("x")) === '["x",null]');
35 assert (JSON.stringify (/(?:(y)*|(x))*/.exec("x")) === '["x",null,"x"]');
37 assert (JSON.stringify (/((?:a)*)asd/.exec("aaasd")) === '["aaasd","aa"]');
38 assert (JSON.stringify (/((?:a)+)asd/.exec("aaasd")) === '["aaasd","aa"]');
39 assert (JSON.stringify (/((?:a)*?)asd/.exec("aaasd")) === '["aaasd","aa"]');
40 assert (JSON.stringify (/((?:a)+?)asd/.exec("aaasd")) === '["aaasd","aa"]');
42 assert (JSON.stringify (/((y)|(z)|(a))*/.exec("yazx")) === '["yaz","z",null,"z",null]');
43 assert (JSON.stringify (/((y)|(z)|(.))*/.exec("yaz")) === '["yaz","z",null,"z",null]');
44 assert (JSON.stringify (/((y)*|(z)*|(a)*)*/.exec("yazx")) === '["yaz","z",null,"z",null]')
45 assert (JSON.stringify (/((y)|(z)|(a))*/.exec("yazx")) === '["yaz","z",null,"z",null]')
46 assert (JSON.stringify (/(?:(y)|(z)|(a))*/.exec("yazx")) === '["yaz",null,"z",null]')
47 assert (JSON.stringify (/((y)|(z)|(a))+?/.exec("yazx")) === '["y","y","y",null,null]')
48 assert (JSON.stringify (/(?:(y)|(z)|(a))+?/.exec("yazx")) === '["y","y",null,null]')
50 assert (JSON.stringify (/(?:(x|y)*|z)*/.exec("yz")) === '["yz",null]');
51 assert (JSON.stringify (/((x|y)*|z)*/.exec("yz")) == '["yz","z",null]');
52 assert (JSON.stringify (/(((x|y)*|(v|w)*|z)*)asd/.exec("xyzwvxzasd")) === '["xyzwvxzasd","xyzwvxz",…
54 assert (JSON.stringify (/((a)*){1,3}b/.exec("ab")) === '["ab","a","a"]')
55 assert (JSON.stringify (/((a)*){2,3}b/.exec("ab")) === '["ab","",null]')
56 assert (JSON.stringify (/((a)*){3,3}b/.exec("ab")) === '["ab","",null]')
58 assert (JSON.stringify (/((a)*){3,}b/.exec("aaaab")) === '["aaaab","",null]');
59 assert (JSON.stringify (/((a)*)*b/.exec("aaaab")) === '["aaaab","aaaa","a"]');
61 assert (JSON.stringify (/((bb?)*)*a/.exec("bbba")) === '["bbba","bbb","b"]');
62 assert (JSON.stringify (/((b)*)*a/.exec("bbba")) === '["bbba","bbb","b"]');
64 assert (JSON.stringify (/(aa|a)a/.exec("aa")) === '["aa","a"]');
65 assert (JSON.stringify (/(aa|a)?a/.exec("aa")) === '["aa","a"]');
66 assert (JSON.stringify (/(aa|a)+?a/.exec("aa")) === '["aa","a"]');
67 assert (JSON.stringify (/(?:aa|a)a/.exec("aa")) === '["aa"]');
68 assert (JSON.stringify (/(?:aa|a)?a/.exec("aa")) === '["aa"]');
69 assert (JSON.stringify (/(?:aa|a)+?a/.exec("aa")) === '["aa"]');
71 assert (JSON.stringify (/(aa|a)a/.exec("a")) === 'null');
72 assert (JSON.stringify (/(aa|a)?a/.exec("a")) === '["a",null]');
73 assert (JSON.stringify (/(aa|a)+?a/.exec("a")) === 'null');
74 assert (JSON.stringify (/(?:aa|a)a/.exec("a")) === 'null');
75 assert (JSON.stringify (/(?:aa|a)?a/.exec("a")) === '["a"]');
76 assert (JSON.stringify (/(?:aa|a)+?a/.exec("a")) === 'null');
78 assert (JSON.stringify (/a+/.exec("aaasd")) === '["aaa"]');
79 assert (JSON.stringify (/a+?/.exec("aaasd")) === '["a"]');
81 assert (JSON.stringify (/a+sd/.exec("aaasd")) === '["aaasd"]');
82 assert (JSON.stringify (/a+?sd/.exec("aaasd")) === '["aaasd"]');
84 assert (JSON.stringify (/a{2}sd/.exec("aaasd")) === '["aasd"]');
85 assert (JSON.stringify (/a{3}sd/.exec("aaasd")) === '["aaasd"]');
87 assert (JSON.stringify (/(?=a)/.exec("a")) === '[""]');
88 assert (JSON.stringify (/(?=a)+/.exec("a")) === '[""]');
89 assert (JSON.stringify (/(?=a)*/.exec("a")) === '[""]');
90 assert (JSON.stringify (/(?=(a))?/.exec("a")) === '["",null]');
91 assert (JSON.stringify (/(?=(a))+?/.exec("a")) === '["","a"]');
92 assert (JSON.stringify (/(?=(a))*?/.exec("a")) === '["",null]');
94 assert (JSON.stringify (/(?!a)/.exec("a")) === '[""]');
95 assert (JSON.stringify (/(?!a)+/.exec("a")) === '[""]');
96 assert (JSON.stringify (/(?!a)*/.exec("a")) === '[""]');
97 assert (JSON.stringify (/(?!(a))?/.exec("a")) === '["",null]');
98 assert (JSON.stringify (/(?!(a))+?/.exec("a")) === '["",null]');
99 assert (JSON.stringify (/(?!(a))*?/.exec("a")) === '["",null]');
101 assert (JSON.stringify (/al(?=(ma))*ma/.exec("alma")) === '["alma",null]');
102 assert (JSON.stringify (/al(?!(ma))*ma/.exec("alma")) === '["alma",null]');
103 assert (JSON.stringify (/al(?=(ma))+ma/.exec("alma")) === '["alma","ma"]');
104 assert (JSON.stringify (/al(?!(ma))+ma/.exec("alma")) === 'null');
106 assert (JSON.stringify (/(?=())x|/.exec("asd")) === '["",null]');
107 assert (JSON.stringify (/(?!())x|/.exec("asd")) === '["",null]');
109 assert (JSON.stringify (/(().*)+.$/.exec("abcdefg")) === '["abcdefg","abcdef",""]');
110 assert (JSON.stringify (/(().*)+?.$/.exec("abcdefg")) === '["abcdefg","abcdef",""]');
111 assert (JSON.stringify (/(?:().*)+.$/.exec("abcdefg")) === '["abcdefg",""]');
112 assert (JSON.stringify (/(?:().*)+?.$/.exec("abcdefg")) === '["abcdefg",""]');
114 assert (JSON.stringify(/((?=())|.)+^/.exec("a")) === '["","",""]');
115 assert (JSON.stringify(/(?:(|\b\w+?){2})+$/.exec("aaaa")) === '["aaaa","aaaa"]');