Home | History | Annotate | Download | only in js

Lines Matching full:shouldbe

29 shouldBe('/(x)?\\1y/.test("y")', 'true');
30 shouldBe('/(x)?\\1y/.exec("y")', '["y", undefined]');
31 shouldBe('/(x)?y/.exec("y")', '["y", undefined]');
32 shouldBe('"y".match(/(x)?\\1y/)', '["y", undefined]');
33 shouldBe('"y".match(/(x)?y/)', '["y", undefined]');
34 shouldBe('"y".match(/(x)?\\1y/g)', '["y"]');
35 shouldBe('"y".split(/(x)?\\1y/)', '["", undefined, ""]');
36 shouldBe('"y".split(/(x)?y/)', '["", undefined, ""]');
37 shouldBe('"y".search(/(x)?\\1y/)', '0');
38 shouldBe('"y".replace(/(x)?\\1y/, "z")', '"z"');
39 shouldBe('"y".replace(/(x)?y/, "$1")', '""');
40 shouldBe('"y".replace(/(x)?\\1y/, function($0, $1){ return String($1); })', '"undefined"');
41 shouldBe('"y".replace(/(x)?y/, function($0, $1){ return String($1); })', '"undefined"');
42 shouldBe('"y".replace(/(x)?y/, function($0, $1){ return $1; })', '"undefined"');