• Home
  • Raw
  • Download

Lines Matching refs:assert

19   assert (false);
21 assert (e instanceof TypeError);
30 assert (false);
32 assert (e === "abrupt string");
41 assert (false);
43 assert (e === "abrupt replace");
52 assert (false);
54 assert (e === "abrupt global");
64 assert (false);
66 assert (e === "abrupt lastIndex");
75 assert (false);
77 assert (e === "abrupt exec");
84 assert (false);
86 assert (e instanceof TypeError);
93 assert (false);
95 assert (e instanceof TypeError);
104 assert (false);
106 assert (e === "abrupt exec result");
115 assert (false);
117 assert (e instanceof TypeError);
130 assert (false);
132 assert (e === "abrupt result length");
149 assert (false);
151 assert (e === "abrupt match");
172 assert (false);
174 assert (e === "abrupt match toString");
208 assert (false);
210 assert (e === "abrupt match toString delayed");
235 assert (false);
237 assert (e === "abrupt lastIndex get");
266 assert (false);
268 assert (e === "abrupt lastIndex toNumber");
315 assert (false);
317 assert (e === "abrupt lastIndex put");
350 assert (false);
352 assert (e instanceof TypeError);
378 assert (false);
380 assert (e === "abrupt exec");
395 assert (false);
397 assert (e === "abrupt index");
416 assert (false);
418 assert (e === "abrupt index toNumber");
434 assert (false);
436 assert (e === "abrupt capture");
454 assert (false);
456 assert (e === "abrupt capture toString");
472 assert (false);
474 assert (e === "abrupt replace");
494 assert (false);
496 assert (e === "abrupt replace toString");
503 assert (false);
505 assert (e === "fastpath abrupt replace");
516 assert (false);
518 assert (e === "fastpath abrupt replace");
521 assert (replace.call (/abc/, "abc", "xyz") === "xyz");
522 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "xyz") === "abxyzfg");
523 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$$-") === "ab-$-fg");
524 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$&-") === "ab-cde-fg");
525 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$`-") === "ab-ab-fg");
526 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$'-") === "ab-fg-fg");
527 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$0-") === "ab-$0-fg");
528 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$1-") === "ab-c-fg");
529 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$2-") === "ab-d-fg");
530 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$3-") === "ab-d-fg");
531 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$4-") === "ab--fg");
532 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$5-") === "ab-e-fg");
533 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$6-") === "ab-$6-fg");
534 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$00-") === "ab-$00-fg");
535 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$01-") === "ab-c-fg");
536 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$10-") === "ab-c0-fg");
537 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$99-") === "ab-$99-fg");
538 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "-$$1-") === "ab-$1-fg");
539 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "$") === "ab$fg");
540 assert (replace.call (/(c)((d)|(x))(e)/, "abcdefg", "$@") === "ab$@fg");
543 assert (arguments[0] === "cde");
544 assert (arguments[1] === "c");
545 assert (arguments[2] === "d");
546 assert (arguments[3] === "d");
547 assert (arguments[4] === undefined);
548 assert (arguments[5] === "e");
549 assert (arguments[6] === 2);
550 assert (arguments[7] === "abcdefg");
554 assert (replace.call (re, "-ab-ab-ab-ab-", "cd") === "-cd-cd-cd-cd-");
555 assert (re.lastIndex === 0);
558 assert (replace.call (re, "-ab-ab-ab-ab-", "cd") === "-cd-cd-cd-cd-");
559 assert (re.lastIndex === 0);
561 assert (replace.call (/(?:)/g, "string", "Duck") === "DucksDucktDuckrDuckiDucknDuckgDuck");
587 assert (replace.call (re, "What have you brought upon this cursed land", "$&") === "What have you b…
611 assert (replace.call (re, "Badger", replacer) === "Ducker");
612 assert (replace_count === 4);
615 assert (replace.call (re, "Badger", "Ord") === "Order");
619 assert (false);
621 assert (e instanceof TypeError);
624 assert(replace.call({ exec : ( ) => { return { } } }, 'һ', "a") === "a");
625 assert(replace.call({ exec : ( ) => { return { } } }, 'һһһһһһһһһ', "a") === "a");
626 assert(replace.call({ exec : ( ) => { return { } } }, 'һһһһһһһһһһ', "a") === "aһ");
633 assert ("string".replace (o, "Mallard") === "Duck");
638 assert (false);
640 assert (e instanceof TypeError);
652 assert (false);
654 assert (e === "abrupt @@replace get");
663 assert (false);
665 assert (e === "abrupt @@replace")
674 assert (replace.call (re, "1") === "undefined");