• Home
  • Raw
  • Download

Lines Matching refs:assert

39         assert(std::regex_match(s, m, std::regex("a")));  in main()
40 assert(m.size() == 1); in main()
41 assert(!m.empty()); in main()
42 assert(!m.prefix().matched); in main()
43 assert(m.prefix().first == s); in main()
44 assert(m.prefix().second == m[0].first); in main()
45 assert(!m.suffix().matched); in main()
46 assert(m.suffix().first == m[0].second); in main()
47 assert(m.suffix().second == s+1); in main()
48 assert(m.length(0) == 1); in main()
49 assert(m.position(0) == 0); in main()
50 assert(m.str(0) == "a"); in main()
55 assert(std::regex_match(s, m, std::regex("ab"))); in main()
56 assert(m.size() == 1); in main()
57 assert(!m.prefix().matched); in main()
58 assert(m.prefix().first == s); in main()
59 assert(m.prefix().second == m[0].first); in main()
60 assert(!m.suffix().matched); in main()
61 assert(m.suffix().first == m[0].second); in main()
62 assert(m.suffix().second == s+2); in main()
63 assert(m.length(0) == 2); in main()
64 assert(m.position(0) == 0); in main()
65 assert(m.str(0) == "ab"); in main()
70 assert(!std::regex_match(s, m, std::regex("ba"))); in main()
71 assert(m.size() == 0); in main()
72 assert(m.empty()); in main()
77 assert(!std::regex_match(s, m, std::regex("ab"))); in main()
78 assert(m.size() == 0); in main()
83 assert(!std::regex_match(s, m, std::regex("ab"), in main()
85 assert(m.size() == 0); in main()
90 assert(!std::regex_match(s, m, std::regex("bc"))); in main()
91 assert(m.size() == 0); in main()
96 assert(std::regex_match(s, m, std::regex("ab*c"))); in main()
97 assert(m.size() == 1); in main()
98 assert(!m.prefix().matched); in main()
99 assert(m.prefix().first == s); in main()
100 assert(m.prefix().second == m[0].first); in main()
101 assert(!m.suffix().matched); in main()
102 assert(m.suffix().first == m[0].second); in main()
103 assert(m.suffix().second == s+4); in main()
104 assert(m.length(0) == 4); in main()
105 assert(m.position(0) == 0); in main()
106 assert(m.str(0) == s); in main()
111 assert(std::regex_match(s, m, std::regex("(ab)*c"))); in main()
112 assert(m.size() == 2); in main()
113 assert(!m.prefix().matched); in main()
114 assert(m.prefix().first == s); in main()
115 assert(m.prefix().second == m[0].first); in main()
116 assert(!m.suffix().matched); in main()
117 assert(m.suffix().first == m[0].second); in main()
118 assert(m.suffix().second == s+5); in main()
119 assert(m.length(0) == 5); in main()
120 assert(m.position(0) == 0); in main()
121 assert(m.str(0) == s); in main()
122 assert(m.length(1) == 2); in main()
123 assert(m.position(1) == 2); in main()
124 assert(m.str(1) == "ab"); in main()
129 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi"))); in main()
130 assert(m.size() == 0); in main()
135 assert(std::regex_match(s, m, std::regex("^abc"))); in main()
136 assert(m.size() == 1); in main()
137 assert(!m.prefix().matched); in main()
138 assert(m.prefix().first == s); in main()
139 assert(m.prefix().second == m[0].first); in main()
140 assert(!m.suffix().matched); in main()
141 assert(m.suffix().first == m[0].second); in main()
142 assert(m.suffix().second == s+3); in main()
143 assert(m.length(0) == 3); in main()
144 assert(m.position(0) == 0); in main()
145 assert(m.str(0) == s); in main()
150 assert(!std::regex_match(s, m, std::regex("^abc"))); in main()
151 assert(m.size() == 0); in main()
156 assert(!std::regex_match(s, m, std::regex("^abc"))); in main()
157 assert(m.size() == 0); in main()
162 assert(std::regex_match(s, m, std::regex("abc$"))); in main()
163 assert(m.size() == 1); in main()
164 assert(!m.prefix().matched); in main()
165 assert(m.prefix().first == s); in main()
166 assert(m.prefix().second == m[0].first); in main()
167 assert(!m.suffix().matched); in main()
168 assert(m.suffix().first == m[0].second); in main()
169 assert(m.suffix().second == s+3); in main()
170 assert(m.length(0) == 3); in main()
171 assert(m.position(0) == 0); in main()
172 assert(m.str(0) == s); in main()
177 assert(!std::regex_match(s, m, std::regex("abc$"))); in main()
178 assert(m.size() == 0); in main()
183 assert(!std::regex_match(s, m, std::regex("abc$"))); in main()
184 assert(m.size() == 0); in main()
189 assert(std::regex_match(s, m, std::regex("a.c"))); in main()
190 assert(m.size() == 1); in main()
191 assert(!m.prefix().matched); in main()
192 assert(m.prefix().first == s); in main()
193 assert(m.prefix().second == m[0].first); in main()
194 assert(!m.suffix().matched); in main()
195 assert(m.suffix().first == m[0].second); in main()
196 assert(m.suffix().second == s+3); in main()
197 assert(m.length(0) == 3); in main()
198 assert(m.position(0) == 0); in main()
199 assert(m.str(0) == s); in main()
204 assert(std::regex_match(s, m, std::regex("a.c"))); in main()
205 assert(m.size() == 1); in main()
206 assert(!m.prefix().matched); in main()
207 assert(m.prefix().first == s); in main()
208 assert(m.prefix().second == m[0].first); in main()
209 assert(!m.suffix().matched); in main()
210 assert(m.suffix().first == m[0].second); in main()
211 assert(m.suffix().second == s+3); in main()
212 assert(m.length(0) == 3); in main()
213 assert(m.position(0) == 0); in main()
214 assert(m.str(0) == s); in main()
219 assert(std::regex_match(s, m, std::regex("a.c"))); in main()
220 assert(m.size() == 1); in main()
221 assert(!m.prefix().matched); in main()
222 assert(m.prefix().first == s); in main()
223 assert(m.prefix().second == m[0].first); in main()
224 assert(!m.suffix().matched); in main()
225 assert(m.suffix().first == m[0].second); in main()
226 assert(m.suffix().second == s+3); in main()
227 assert(m.length(0) == 3); in main()
228 assert(m.position(0) == 0); in main()
229 assert(m.str(0) == s); in main()
234 assert(std::regex_match(s, m, std::regex("(.*).*"))); in main()
235 assert(m.size() == 2); in main()
236 assert(!m.prefix().matched); in main()
237 assert(m.prefix().first == s); in main()
238 assert(m.prefix().second == m[0].first); in main()
239 assert(!m.suffix().matched); in main()
240 assert(m.suffix().first == m[0].second); in main()
241 assert(m.suffix().second == s+6); in main()
242 assert(m.length(0) == 6); in main()
243 assert(m.position(0) == 0); in main()
244 assert(m.str(0) == s); in main()
245 assert(m.length(1) == 6); in main()
246 assert(m.position(1) == 0); in main()
247 assert(m.str(1) == s); in main()
252 assert(!std::regex_match(s, m, std::regex("(a*)*"))); in main()
253 assert(m.size() == 0); in main()
258 assert(!std::regex_match(s, m, std::regex("ab{3,5}c"))); in main()
259 assert(m.size() == 0); in main()
264 assert(std::regex_match(s, m, std::regex("ab{3,5}c"))); in main()
265 assert(m.size() == 1); in main()
266 assert(!m.prefix().matched); in main()
267 assert(m.prefix().first == s); in main()
268 assert(m.prefix().second == m[0].first); in main()
269 assert(!m.suffix().matched); in main()
270 assert(m.suffix().first == m[0].second); in main()
271 assert(m.suffix().second == m[0].second); in main()
272assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
273 assert(m.position(0) == 0); in main()
274 assert(m.str(0) == s); in main()
279 assert(std::regex_match(s, m, std::regex("ab{3,5}c"))); in main()
280 assert(m.size() == 1); in main()
281 assert(!m.prefix().matched); in main()
282 assert(m.prefix().first == s); in main()
283 assert(m.prefix().second == m[0].first); in main()
284 assert(!m.suffix().matched); in main()
285 assert(m.suffix().first == m[0].second); in main()
286 assert(m.suffix().second == m[0].second); in main()
287assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
288 assert(m.position(0) == 0); in main()
289 assert(m.str(0) == s); in main()
294 assert(std::regex_match(s, m, std::regex("ab{3,5}c"))); in main()
295 assert(m.size() == 1); in main()
296 assert(!m.prefix().matched); in main()
297 assert(m.prefix().first == s); in main()
298 assert(m.prefix().second == m[0].first); in main()
299 assert(!m.suffix().matched); in main()
300 assert(m.suffix().first == m[0].second); in main()
301 assert(m.suffix().second == m[0].second); in main()
302assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
303 assert(m.position(0) == 0); in main()
304 assert(m.str(0) == s); in main()
309 assert(!std::regex_match(s, m, std::regex("ab{3,5}c"))); in main()
310 assert(m.size() == 0); in main()
315 assert(!std::regex_match(s, m, std::regex("ab{3,5}c"))); in main()
316 assert(m.size() == 0); in main()
321 assert(!std::regex_match(s, m, std::regex("a.{3,5}c"))); in main()
322 assert(m.size() == 0); in main()
327 assert(std::regex_match(s, m, std::regex("a.{3,5}c"))); in main()
328 assert(m.size() == 1); in main()
329 assert(!m.prefix().matched); in main()
330 assert(m.prefix().first == s); in main()
331 assert(m.prefix().second == m[0].first); in main()
332 assert(!m.suffix().matched); in main()
333 assert(m.suffix().first == m[0].second); in main()
334 assert(m.suffix().second == m[0].second); in main()
335assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
336 assert(m.position(0) == 0); in main()
337 assert(m.str(0) == s); in main()
342 assert(std::regex_match(s, m, std::regex("a.{3,5}c"))); in main()
343 assert(m.size() == 1); in main()
344 assert(!m.prefix().matched); in main()
345 assert(m.prefix().first == s); in main()
346 assert(m.prefix().second == m[0].first); in main()
347 assert(!m.suffix().matched); in main()
348 assert(m.suffix().first == m[0].second); in main()
349 assert(m.suffix().second == m[0].second); in main()
350assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
351 assert(m.position(0) == 0); in main()
352 assert(m.str(0) == s); in main()
357 assert(std::regex_match(s, m, std::regex("a.{3,5}c"))); in main()
358 assert(m.size() == 1); in main()
359 assert(!m.prefix().matched); in main()
360 assert(m.prefix().first == s); in main()
361 assert(m.prefix().second == m[0].first); in main()
362 assert(!m.suffix().matched); in main()
363 assert(m.suffix().first == m[0].second); in main()
364 assert(m.suffix().second == m[0].second); in main()
365assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
366 assert(m.position(0) == 0); in main()
367 assert(m.str(0) == s); in main()
372 assert(!std::regex_match(s, m, std::regex("a.{3,5}c"))); in main()
373 assert(m.size() == 0); in main()
379 assert(std::regex_match(s, m, std::regex("tour|to|tournament"))); in main()
380 assert(m.size() == 1); in main()
381 assert(!m.prefix().matched); in main()
382 assert(m.prefix().first == s); in main()
383 assert(m.prefix().second == m[0].first); in main()
384 assert(!m.suffix().matched); in main()
385 assert(m.suffix().first == m[0].second); in main()
386 assert(m.suffix().second == m[0].second); in main()
387assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
388 assert(m.position(0) == 0); in main()
389 assert(m.str(0) == s); in main()
395 assert( in main()
398 assert(m.size() == 1); in main()
399 assert(!m.prefix().matched); in main()
400 assert(m.prefix().first == s); in main()
401 assert(m.prefix().second == m[0].first); in main()
402 assert(!m.suffix().matched); in main()
403 assert(m.suffix().first == m[0].second); in main()
404 assert(m.suffix().second == m[0].second); in main()
405assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
406 assert(m.position(0) == 0); in main()
407 assert(m.str(0) == s); in main()
412 assert(std::regex_match(s, m, std::regex("(tour|to|t)+"))); in main()
413 assert(m.size() == 2); in main()
414 assert(!m.prefix().matched); in main()
415 assert(m.prefix().first == s); in main()
416 assert(m.prefix().second == m[0].first); in main()
417 assert(!m.suffix().matched); in main()
418 assert(m.suffix().first == m[0].second); in main()
419 assert(m.suffix().second == m[0].second); in main()
420assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
421 assert(m.position(0) == 0); in main()
422 assert(m.str(0) == s); in main()
423 assert(m.length(1) == 4); in main()
424 assert(m.position(1) == 3); in main()
425 assert(m.str(1) == "tour"); in main()
430 assert(!std::regex_match(s, m, std::regex("-(.*),\1-"))); in main()
431 assert(m.size() == 0); in main()
436 assert(std::regex_match(s, m, std::regex("-.*,.*-"))); in main()
437 assert(m.size() == 1); in main()
438 assert(!m.prefix().matched); in main()
439 assert(m.prefix().first == s); in main()
440 assert(m.prefix().second == m[0].first); in main()
441 assert(!m.suffix().matched); in main()
442 assert(m.suffix().first == m[0].second); in main()
443 assert(m.suffix().second == m[0].second); in main()
444assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
445 assert(m.position(0) == 0); in main()
446 assert(m.str(0) == s); in main()
451 assert(std::regex_match(s, m, std::regex("^[a]$"))); in main()
452 assert(m.size() == 1); in main()
453 assert(!m.prefix().matched); in main()
454 assert(m.prefix().first == s); in main()
455 assert(m.prefix().second == m[0].first); in main()
456 assert(!m.suffix().matched); in main()
457 assert(m.suffix().first == m[0].second); in main()
458 assert(m.suffix().second == m[0].second); in main()
459 assert(m.length(0) == 1); in main()
460 assert(m.position(0) == 0); in main()
461 assert(m.str(0) == "a"); in main()
466 assert(std::regex_match(s, m, std::regex("^[ab]$"))); in main()
467 assert(m.size() == 1); in main()
468 assert(!m.prefix().matched); in main()
469 assert(m.prefix().first == s); in main()
470 assert(m.prefix().second == m[0].first); in main()
471 assert(!m.suffix().matched); in main()
472 assert(m.suffix().first == m[0].second); in main()
473 assert(m.suffix().second == m[0].second); in main()
474 assert(m.length(0) == 1); in main()
475 assert(m.position(0) == 0); in main()
476 assert(m.str(0) == "a"); in main()
481 assert(std::regex_match(s, m, std::regex("^[a-f]$"))); in main()
482 assert(m.size() == 1); in main()
483 assert(!m.prefix().matched); in main()
484 assert(m.prefix().first == s); in main()
485 assert(m.prefix().second == m[0].first); in main()
486 assert(!m.suffix().matched); in main()
487 assert(m.suffix().first == m[0].second); in main()
488 assert(m.suffix().second == m[0].second); in main()
489 assert(m.length(0) == 1); in main()
490 assert(m.position(0) == 0); in main()
491 assert(m.str(0) == s); in main()
496 assert(!std::regex_match(s, m, std::regex("^[a-f]$"))); in main()
497 assert(m.size() == 0); in main()
502 assert(!std::regex_match(s, m, std::regex("q[^u]"))); in main()
503 assert(m.size() == 0); in main()
508 assert(!std::regex_match(s, m, std::regex("q[^u]"))); in main()
509 assert(m.size() == 0); in main()
514 assert(std::regex_match(s, m, std::regex("A[[:lower:]]B"))); in main()
515 assert(m.size() == 1); in main()
516 assert(!m.prefix().matched); in main()
517 assert(m.prefix().first == s); in main()
518 assert(m.prefix().second == m[0].first); in main()
519 assert(!m.suffix().matched); in main()
520 assert(m.suffix().first == m[0].second); in main()
521 assert(m.suffix().second == m[0].second); in main()
522assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
523 assert(m.position(0) == 0); in main()
524 assert(m.str(0) == s); in main()
529 assert(!std::regex_match(s, m, std::regex("A[[:lower:]]B"))); in main()
530 assert(m.size() == 0); in main()
535 assert(std::regex_match(s, m, std::regex("A[^[:lower:]]B"))); in main()
536 assert(m.size() == 1); in main()
537 assert(!m.prefix().matched); in main()
538 assert(m.prefix().first == s); in main()
539 assert(m.prefix().second == m[0].first); in main()
540 assert(!m.suffix().matched); in main()
541 assert(m.suffix().first == m[0].second); in main()
542 assert(m.suffix().second == m[0].second); in main()
543assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
544 assert(m.position(0) == 0); in main()
545 assert(m.str(0) == s); in main()
550 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]]B"))); in main()
551 assert(m.size() == 0); in main()
556 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B"))); in main()
557 assert(m.size() == 0); in main()
562 assert(std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B"))); in main()
563 assert(m.size() == 1); in main()
564 assert(!m.prefix().matched); in main()
565 assert(m.prefix().first == s); in main()
566 assert(m.prefix().second == m[0].first); in main()
567 assert(!m.suffix().matched); in main()
568 assert(m.suffix().first == m[0].second); in main()
569 assert(m.suffix().second == m[0].second); in main()
570assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
571 assert(m.position(0) == 0); in main()
572 assert(m.str(0) == s); in main()
577 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]"))); in main()
578 assert(m.size() == 1); in main()
579 assert(!m.prefix().matched); in main()
580 assert(m.prefix().first == s); in main()
581 assert(m.prefix().second == m[0].first); in main()
582 assert(!m.suffix().matched); in main()
583 assert(m.suffix().first == m[0].second); in main()
584 assert(m.suffix().second == m[0].second); in main()
585assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
586 assert(m.position(0) == 0); in main()
587 assert(m.str(0) == s); in main()
592 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]"))); in main()
593 assert(m.size() == 1); in main()
594 assert(!m.prefix().matched); in main()
595 assert(m.prefix().first == s); in main()
596 assert(m.prefix().second == m[0].first); in main()
597 assert(!m.suffix().matched); in main()
598 assert(m.suffix().first == m[0].second); in main()
599 assert(m.suffix().second == m[0].second); in main()
600assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
601 assert(m.position(0) == 0); in main()
602 assert(m.str(0) == s); in main()
607 assert(!std::regex_match(s, m, std::regex("[a[.hyphen.]z]"))); in main()
608 assert(m.size() == 0); in main()
614 assert(std::regex_match(s, m, std::regex("[a[=M=]z]"))); in main()
615 assert(m.size() == 1); in main()
616 assert(!m.prefix().matched); in main()
617 assert(m.prefix().first == s); in main()
618 assert(m.prefix().second == m[0].first); in main()
619 assert(!m.suffix().matched); in main()
620 assert(m.suffix().first == m[0].second); in main()
621 assert(m.suffix().second == m[0].second); in main()
622assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
623 assert(m.position(0) == 0); in main()
624 assert(m.str(0) == s); in main()
629 assert(std::regex_match(s, m, std::regex("[a[.ch.]z]", in main()
631 assert(m.size() == 1); in main()
632 assert(!m.prefix().matched); in main()
633 assert(m.prefix().first == s); in main()
634 assert(m.prefix().second == m[0].first); in main()
635 assert(!m.suffix().matched); in main()
636 assert(m.suffix().first == m[0].second); in main()
637 assert(m.suffix().second == m[0].second); in main()
638assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
639 assert(m.position(0) == 0); in main()
640 assert(m.str(0) == s); in main()
645 assert(std::regex_match(s, m, std::regex("[^\\0]*"))); in main()
646 assert(m.size() == 1); in main()
651 assert(std::regex_match(s, s+7, m, std::regex("[abfor\\0]*"))); in main()
652 assert(m.size() == 1); in main()
658 assert(!std::regex_match(s, m, std::regex("[a[=M=]z]"))); in main()
659 assert(m.size() == 0); in main()
664 assert(!std::regex_match(s, m, std::regex("[ace1-9]*"))); in main()
665 assert(m.size() == 0); in main()
670 assert(!std::regex_match(s, m, std::regex("[ace1-9]+"))); in main()
671 assert(m.size() == 0); in main()
682 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
683 assert(m.size() == 1); in main()
684 assert(!m.prefix().matched); in main()
685 assert(m.prefix().first == BI(s)); in main()
686 assert(m.prefix().second == m[0].first); in main()
687 assert(!m.suffix().matched); in main()
688 assert(m.suffix().first == m[0].second); in main()
689 assert(m.suffix().second == m[0].second); in main()
690 assert(m.length(0) == 4); in main()
691 assert(m.position(0) == 0); in main()
692 assert(m.str(0) == s); in main()
697 assert(!std::regex_match(s, m, std::regex("Jeff(?=s\\b)"))); in main()
698 assert(m.size() == 0); in main()
703 assert(!std::regex_match(s, m, std::regex("Jeff(?!s\\b)"))); in main()
704 assert(m.size() == 0); in main()
709 assert(std::regex_match(s, m, std::regex("\\d[\\W]k"))); in main()
710 assert(m.size() == 1); in main()
711 assert(!m.prefix().matched); in main()
712 assert(m.prefix().first == s); in main()
713 assert(m.prefix().second == m[0].first); in main()
714 assert(!m.suffix().matched); in main()
715 assert(m.suffix().first == m[0].second); in main()
716 assert(m.suffix().second == s + std::char_traits<char>::length(s)); in main()
717assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
718 assert(m.position(0) == 0); in main()
719 assert(m.str(0) == s); in main()
725 assert(std::regex_match(s, m, std::wregex(L"a"))); in main()
726 assert(m.size() == 1); in main()
727 assert(!m.empty()); in main()
728 assert(!m.prefix().matched); in main()
729 assert(m.prefix().first == s); in main()
730 assert(m.prefix().second == m[0].first); in main()
731 assert(!m.suffix().matched); in main()
732 assert(m.suffix().first == m[0].second); in main()
733 assert(m.suffix().second == s+1); in main()
734 assert(m.length(0) == 1); in main()
735 assert(m.position(0) == 0); in main()
736 assert(m.str(0) == L"a"); in main()
741 assert(std::regex_match(s, m, std::wregex(L"ab"))); in main()
742 assert(m.size() == 1); in main()
743 assert(!m.prefix().matched); in main()
744 assert(m.prefix().first == s); in main()
745 assert(m.prefix().second == m[0].first); in main()
746 assert(!m.suffix().matched); in main()
747 assert(m.suffix().first == m[0].second); in main()
748 assert(m.suffix().second == s+2); in main()
749 assert(m.length(0) == 2); in main()
750 assert(m.position(0) == 0); in main()
751 assert(m.str(0) == L"ab"); in main()
756 assert(!std::regex_match(s, m, std::wregex(L"ba"))); in main()
757 assert(m.size() == 0); in main()
758 assert(m.empty()); in main()
763 assert(!std::regex_match(s, m, std::wregex(L"ab"))); in main()
764 assert(m.size() == 0); in main()
769 assert(!std::regex_match(s, m, std::wregex(L"ab"), in main()
771 assert(m.size() == 0); in main()
776 assert(!std::regex_match(s, m, std::wregex(L"bc"))); in main()
777 assert(m.size() == 0); in main()
782 assert(std::regex_match(s, m, std::wregex(L"ab*c"))); in main()
783 assert(m.size() == 1); in main()
784 assert(!m.prefix().matched); in main()
785 assert(m.prefix().first == s); in main()
786 assert(m.prefix().second == m[0].first); in main()
787 assert(!m.suffix().matched); in main()
788 assert(m.suffix().first == m[0].second); in main()
789 assert(m.suffix().second == s+4); in main()
790 assert(m.length(0) == 4); in main()
791 assert(m.position(0) == 0); in main()
792 assert(m.str(0) == s); in main()
797 assert(std::regex_match(s, m, std::wregex(L"(ab)*c"))); in main()
798 assert(m.size() == 2); in main()
799 assert(!m.prefix().matched); in main()
800 assert(m.prefix().first == s); in main()
801 assert(m.prefix().second == m[0].first); in main()
802 assert(!m.suffix().matched); in main()
803 assert(m.suffix().first == m[0].second); in main()
804 assert(m.suffix().second == s+5); in main()
805 assert(m.length(0) == 5); in main()
806 assert(m.position(0) == 0); in main()
807 assert(m.str(0) == s); in main()
808 assert(m.length(1) == 2); in main()
809 assert(m.position(1) == 2); in main()
810 assert(m.str(1) == L"ab"); in main()
815 assert(!std::regex_match(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
816 assert(m.size() == 0); in main()
821 assert(std::regex_match(s, m, std::wregex(L"^abc"))); in main()
822 assert(m.size() == 1); in main()
823 assert(!m.prefix().matched); in main()
824 assert(m.prefix().first == s); in main()
825 assert(m.prefix().second == m[0].first); in main()
826 assert(!m.suffix().matched); in main()
827 assert(m.suffix().first == m[0].second); in main()
828 assert(m.suffix().second == s+3); in main()
829 assert(m.length(0) == 3); in main()
830 assert(m.position(0) == 0); in main()
831 assert(m.str(0) == s); in main()
836 assert(!std::regex_match(s, m, std::wregex(L"^abc"))); in main()
837 assert(m.size() == 0); in main()
842 assert(!std::regex_match(s, m, std::wregex(L"^abc"))); in main()
843 assert(m.size() == 0); in main()
848 assert(std::regex_match(s, m, std::wregex(L"abc$"))); in main()
849 assert(m.size() == 1); in main()
850 assert(!m.prefix().matched); in main()
851 assert(m.prefix().first == s); in main()
852 assert(m.prefix().second == m[0].first); in main()
853 assert(!m.suffix().matched); in main()
854 assert(m.suffix().first == m[0].second); in main()
855 assert(m.suffix().second == s+3); in main()
856 assert(m.length(0) == 3); in main()
857 assert(m.position(0) == 0); in main()
858 assert(m.str(0) == s); in main()
863 assert(!std::regex_match(s, m, std::wregex(L"abc$"))); in main()
864 assert(m.size() == 0); in main()
869 assert(!std::regex_match(s, m, std::wregex(L"abc$"))); in main()
870 assert(m.size() == 0); in main()
875 assert(std::regex_match(s, m, std::wregex(L"a.c"))); in main()
876 assert(m.size() == 1); in main()
877 assert(!m.prefix().matched); in main()
878 assert(m.prefix().first == s); in main()
879 assert(m.prefix().second == m[0].first); in main()
880 assert(!m.suffix().matched); in main()
881 assert(m.suffix().first == m[0].second); in main()
882 assert(m.suffix().second == s+3); in main()
883 assert(m.length(0) == 3); in main()
884 assert(m.position(0) == 0); in main()
885 assert(m.str(0) == s); in main()
890 assert(std::regex_match(s, m, std::wregex(L"a.c"))); in main()
891 assert(m.size() == 1); in main()
892 assert(!m.prefix().matched); in main()
893 assert(m.prefix().first == s); in main()
894 assert(m.prefix().second == m[0].first); in main()
895 assert(!m.suffix().matched); in main()
896 assert(m.suffix().first == m[0].second); in main()
897 assert(m.suffix().second == s+3); in main()
898 assert(m.length(0) == 3); in main()
899 assert(m.position(0) == 0); in main()
900 assert(m.str(0) == s); in main()
905 assert(std::regex_match(s, m, std::wregex(L"a.c"))); in main()
906 assert(m.size() == 1); in main()
907 assert(!m.prefix().matched); in main()
908 assert(m.prefix().first == s); in main()
909 assert(m.prefix().second == m[0].first); in main()
910 assert(!m.suffix().matched); in main()
911 assert(m.suffix().first == m[0].second); in main()
912 assert(m.suffix().second == s+3); in main()
913 assert(m.length(0) == 3); in main()
914 assert(m.position(0) == 0); in main()
915 assert(m.str(0) == s); in main()
920 assert(std::regex_match(s, m, std::wregex(L"(.*).*"))); in main()
921 assert(m.size() == 2); in main()
922 assert(!m.prefix().matched); in main()
923 assert(m.prefix().first == s); in main()
924 assert(m.prefix().second == m[0].first); in main()
925 assert(!m.suffix().matched); in main()
926 assert(m.suffix().first == m[0].second); in main()
927 assert(m.suffix().second == s+6); in main()
928 assert(m.length(0) == 6); in main()
929 assert(m.position(0) == 0); in main()
930 assert(m.str(0) == s); in main()
931 assert(m.length(1) == 6); in main()
932 assert(m.position(1) == 0); in main()
933 assert(m.str(1) == s); in main()
938 assert(!std::regex_match(s, m, std::wregex(L"(a*)*"))); in main()
939 assert(m.size() == 0); in main()
944 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c"))); in main()
945 assert(m.size() == 0); in main()
950 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c"))); in main()
951 assert(m.size() == 1); in main()
952 assert(!m.prefix().matched); in main()
953 assert(m.prefix().first == s); in main()
954 assert(m.prefix().second == m[0].first); in main()
955 assert(!m.suffix().matched); in main()
956 assert(m.suffix().first == m[0].second); in main()
957 assert(m.suffix().second == m[0].second); in main()
958assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
959 assert(m.position(0) == 0); in main()
960 assert(m.str(0) == s); in main()
965 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c"))); in main()
966 assert(m.size() == 1); in main()
967 assert(!m.prefix().matched); in main()
968 assert(m.prefix().first == s); in main()
969 assert(m.prefix().second == m[0].first); in main()
970 assert(!m.suffix().matched); in main()
971 assert(m.suffix().first == m[0].second); in main()
972 assert(m.suffix().second == m[0].second); in main()
973assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
974 assert(m.position(0) == 0); in main()
975 assert(m.str(0) == s); in main()
980 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c"))); in main()
981 assert(m.size() == 1); in main()
982 assert(!m.prefix().matched); in main()
983 assert(m.prefix().first == s); in main()
984 assert(m.prefix().second == m[0].first); in main()
985 assert(!m.suffix().matched); in main()
986 assert(m.suffix().first == m[0].second); in main()
987 assert(m.suffix().second == m[0].second); in main()
988assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
989 assert(m.position(0) == 0); in main()
990 assert(m.str(0) == s); in main()
995 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c"))); in main()
996 assert(m.size() == 0); in main()
1001 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c"))); in main()
1002 assert(m.size() == 0); in main()
1007 assert(!std::regex_match(s, m, std::wregex(L"a.{3,5}c"))); in main()
1008 assert(m.size() == 0); in main()
1013 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c"))); in main()
1014 assert(m.size() == 1); in main()
1015 assert(!m.prefix().matched); in main()
1016 assert(m.prefix().first == s); in main()
1017 assert(m.prefix().second == m[0].first); in main()
1018 assert(!m.suffix().matched); in main()
1019 assert(m.suffix().first == m[0].second); in main()
1020 assert(m.suffix().second == m[0].second); in main()
1021assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1022 assert(m.position(0) == 0); in main()
1023 assert(m.str(0) == s); in main()
1028 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c"))); in main()
1029 assert(m.size() == 1); in main()
1030 assert(!m.prefix().matched); in main()
1031 assert(m.prefix().first == s); in main()
1032 assert(m.prefix().second == m[0].first); in main()
1033 assert(!m.suffix().matched); in main()
1034 assert(m.suffix().first == m[0].second); in main()
1035 assert(m.suffix().second == m[0].second); in main()
1036assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1037 assert(m.position(0) == 0); in main()
1038 assert(m.str(0) == s); in main()
1043 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c"))); in main()
1044 assert(m.size() == 1); in main()
1045 assert(!m.prefix().matched); in main()
1046 assert(m.prefix().first == s); in main()
1047 assert(m.prefix().second == m[0].first); in main()
1048 assert(!m.suffix().matched); in main()
1049 assert(m.suffix().first == m[0].second); in main()
1050 assert(m.suffix().second == m[0].second); in main()
1051assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1052 assert(m.position(0) == 0); in main()
1053 assert(m.str(0) == s); in main()
1058 assert(!std::regex_match(s, m, std::wregex(L"a.{3,5}c"))); in main()
1059 assert(m.size() == 0); in main()
1065 assert(std::regex_match(s, m, std::wregex(L"tour|to|tournament"))); in main()
1066 assert(m.size() == 1); in main()
1067 assert(!m.prefix().matched); in main()
1068 assert(m.prefix().first == s); in main()
1069 assert(m.prefix().second == m[0].first); in main()
1070 assert(!m.suffix().matched); in main()
1071 assert(m.suffix().first == m[0].second); in main()
1072 assert(m.suffix().second == m[0].second); in main()
1073assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1074 assert(m.position(0) == 0); in main()
1075 assert(m.str(0) == s); in main()
1081 assert( in main()
1084 assert(m.size() == 1); in main()
1085 assert(!m.prefix().matched); in main()
1086 assert(m.prefix().first == s); in main()
1087 assert(m.prefix().second == m[0].first); in main()
1088 assert(!m.suffix().matched); in main()
1089 assert(m.suffix().first == m[0].second); in main()
1090 assert(m.suffix().second == m[0].second); in main()
1091assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1092 assert(m.position(0) == 0); in main()
1093 assert(m.str(0) == s); in main()
1098 assert(std::regex_match(s, m, std::wregex(L"(tour|to|t)+"))); in main()
1099 assert(m.size() == 2); in main()
1100 assert(!m.prefix().matched); in main()
1101 assert(m.prefix().first == s); in main()
1102 assert(m.prefix().second == m[0].first); in main()
1103 assert(!m.suffix().matched); in main()
1104 assert(m.suffix().first == m[0].second); in main()
1105 assert(m.suffix().second == m[0].second); in main()
1106assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1107 assert(m.position(0) == 0); in main()
1108 assert(m.str(0) == s); in main()
1109 assert(m.length(1) == 4); in main()
1110 assert(m.position(1) == 3); in main()
1111 assert(m.str(1) == L"tour"); in main()
1116 assert(!std::regex_match(s, m, std::wregex(L"-(.*),\1-"))); in main()
1117 assert(m.size() == 0); in main()
1122 assert(std::regex_match(s, m, std::wregex(L"-.*,.*-"))); in main()
1123 assert(m.size() == 1); in main()
1124 assert(!m.prefix().matched); in main()
1125 assert(m.prefix().first == s); in main()
1126 assert(m.prefix().second == m[0].first); in main()
1127 assert(!m.suffix().matched); in main()
1128 assert(m.suffix().first == m[0].second); in main()
1129 assert(m.suffix().second == m[0].second); in main()
1130assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1131 assert(m.position(0) == 0); in main()
1132 assert(m.str(0) == s); in main()
1137 assert(std::regex_match(s, m, std::wregex(L"^[a]$"))); in main()
1138 assert(m.size() == 1); in main()
1139 assert(!m.prefix().matched); in main()
1140 assert(m.prefix().first == s); in main()
1141 assert(m.prefix().second == m[0].first); in main()
1142 assert(!m.suffix().matched); in main()
1143 assert(m.suffix().first == m[0].second); in main()
1144 assert(m.suffix().second == m[0].second); in main()
1145 assert(m.length(0) == 1); in main()
1146 assert(m.position(0) == 0); in main()
1147 assert(m.str(0) == L"a"); in main()
1152 assert(std::regex_match(s, m, std::wregex(L"^[ab]$"))); in main()
1153 assert(m.size() == 1); in main()
1154 assert(!m.prefix().matched); in main()
1155 assert(m.prefix().first == s); in main()
1156 assert(m.prefix().second == m[0].first); in main()
1157 assert(!m.suffix().matched); in main()
1158 assert(m.suffix().first == m[0].second); in main()
1159 assert(m.suffix().second == m[0].second); in main()
1160 assert(m.length(0) == 1); in main()
1161 assert(m.position(0) == 0); in main()
1162 assert(m.str(0) == L"a"); in main()
1167 assert(std::regex_match(s, m, std::wregex(L"^[a-f]$"))); in main()
1168 assert(m.size() == 1); in main()
1169 assert(!m.prefix().matched); in main()
1170 assert(m.prefix().first == s); in main()
1171 assert(m.prefix().second == m[0].first); in main()
1172 assert(!m.suffix().matched); in main()
1173 assert(m.suffix().first == m[0].second); in main()
1174 assert(m.suffix().second == m[0].second); in main()
1175 assert(m.length(0) == 1); in main()
1176 assert(m.position(0) == 0); in main()
1177 assert(m.str(0) == s); in main()
1182 assert(!std::regex_match(s, m, std::wregex(L"^[a-f]$"))); in main()
1183 assert(m.size() == 0); in main()
1188 assert(!std::regex_match(s, m, std::wregex(L"q[^u]"))); in main()
1189 assert(m.size() == 0); in main()
1194 assert(!std::regex_match(s, m, std::wregex(L"q[^u]"))); in main()
1195 assert(m.size() == 0); in main()
1200 assert(std::regex_match(s, m, std::wregex(L"A[[:lower:]]B"))); in main()
1201 assert(m.size() == 1); in main()
1202 assert(!m.prefix().matched); in main()
1203 assert(m.prefix().first == s); in main()
1204 assert(m.prefix().second == m[0].first); in main()
1205 assert(!m.suffix().matched); in main()
1206 assert(m.suffix().first == m[0].second); in main()
1207 assert(m.suffix().second == m[0].second); in main()
1208assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1209 assert(m.position(0) == 0); in main()
1210 assert(m.str(0) == s); in main()
1215 assert(!std::regex_match(s, m, std::wregex(L"A[[:lower:]]B"))); in main()
1216 assert(m.size() == 0); in main()
1221 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B"))); in main()
1222 assert(m.size() == 1); in main()
1223 assert(!m.prefix().matched); in main()
1224 assert(m.prefix().first == s); in main()
1225 assert(m.prefix().second == m[0].first); in main()
1226 assert(!m.suffix().matched); in main()
1227 assert(m.suffix().first == m[0].second); in main()
1228 assert(m.suffix().second == m[0].second); in main()
1229assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1230 assert(m.position(0) == 0); in main()
1231 assert(m.str(0) == s); in main()
1236 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B"))); in main()
1237 assert(m.size() == 0); in main()
1242 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B"))); in main()
1243 assert(m.size() == 0); in main()
1248 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B"))); in main()
1249 assert(m.size() == 1); in main()
1250 assert(!m.prefix().matched); in main()
1251 assert(m.prefix().first == s); in main()
1252 assert(m.prefix().second == m[0].first); in main()
1253 assert(!m.suffix().matched); in main()
1254 assert(m.suffix().first == m[0].second); in main()
1255 assert(m.suffix().second == m[0].second); in main()
1256assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1257 assert(m.position(0) == 0); in main()
1258 assert(m.str(0) == s); in main()
1263 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]"))); in main()
1264 assert(m.size() == 1); in main()
1265 assert(!m.prefix().matched); in main()
1266 assert(m.prefix().first == s); in main()
1267 assert(m.prefix().second == m[0].first); in main()
1268 assert(!m.suffix().matched); in main()
1269 assert(m.suffix().first == m[0].second); in main()
1270 assert(m.suffix().second == m[0].second); in main()
1271assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1272 assert(m.position(0) == 0); in main()
1273 assert(m.str(0) == s); in main()
1278 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]"))); in main()
1279 assert(m.size() == 1); in main()
1280 assert(!m.prefix().matched); in main()
1281 assert(m.prefix().first == s); in main()
1282 assert(m.prefix().second == m[0].first); in main()
1283 assert(!m.suffix().matched); in main()
1284 assert(m.suffix().first == m[0].second); in main()
1285 assert(m.suffix().second == m[0].second); in main()
1286assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1287 assert(m.position(0) == 0); in main()
1288 assert(m.str(0) == s); in main()
1293 assert(!std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]"))); in main()
1294 assert(m.size() == 0); in main()
1300 assert(std::regex_match(s, m, std::wregex(L"[a[=M=]z]"))); in main()
1301 assert(m.size() == 1); in main()
1302 assert(!m.prefix().matched); in main()
1303 assert(m.prefix().first == s); in main()
1304 assert(m.prefix().second == m[0].first); in main()
1305 assert(!m.suffix().matched); in main()
1306 assert(m.suffix().first == m[0].second); in main()
1307 assert(m.suffix().second == m[0].second); in main()
1308assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1309 assert(m.position(0) == 0); in main()
1310 assert(m.str(0) == s); in main()
1315 assert(std::regex_match(s, m, std::wregex(L"[a[.ch.]z]", in main()
1317 assert(m.size() == 1); in main()
1318 assert(!m.prefix().matched); in main()
1319 assert(m.prefix().first == s); in main()
1320 assert(m.prefix().second == m[0].first); in main()
1321 assert(!m.suffix().matched); in main()
1322 assert(m.suffix().first == m[0].second); in main()
1323 assert(m.suffix().second == m[0].second); in main()
1324assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1325 assert(m.position(0) == 0); in main()
1326 assert(m.str(0) == s); in main()
1332 assert(!std::regex_match(s, m, std::wregex(L"[a[=M=]z]"))); in main()
1333 assert(m.size() == 0); in main()
1338 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]*"))); in main()
1339 assert(m.size() == 0); in main()
1344 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]+"))); in main()
1345 assert(m.size() == 0); in main()
1356 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
1357 assert(m.size() == 1); in main()
1358 assert(!m.prefix().matched); in main()
1359 assert(m.prefix().first == BI(s)); in main()
1360 assert(m.prefix().second == m[0].first); in main()
1361 assert(!m.suffix().matched); in main()
1362 assert(m.suffix().first == m[0].second); in main()
1363 assert(m.suffix().second == m[0].second); in main()
1364 assert(m.length(0) == 4); in main()
1365 assert(m.position(0) == 0); in main()
1366 assert(m.str(0) == s); in main()
1371 assert(!std::regex_match(s, m, std::wregex(L"Jeff(?=s\\b)"))); in main()
1372 assert(m.size() == 0); in main()
1377 assert(!std::regex_match(s, m, std::wregex(L"Jeff(?!s\\b)"))); in main()
1378 assert(m.size() == 0); in main()
1383 assert(std::regex_match(s, m, std::wregex(L"\\d[\\W]k"))); in main()
1384 assert(m.size() == 1); in main()
1385 assert(!m.prefix().matched); in main()
1386 assert(m.prefix().first == s); in main()
1387 assert(m.prefix().second == m[0].first); in main()
1388 assert(!m.suffix().matched); in main()
1389 assert(m.suffix().first == m[0].second); in main()
1390 assert(m.suffix().second == s + std::char_traits<wchar_t>::length(s)); in main()
1391assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1392 assert(m.position(0) == 0); in main()
1393 assert(m.str(0) == s); in main()