summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/regexp_parse/Assertion.js
blob: 774f4347160e50982d3475a69894b7339de1add4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if (typeof parseRegExp === 'undefined')
    quit();

load(libdir + "regexp_parse.js");

test_mix("^", no_multiline_flags,
         Assertion("START_OF_INPUT"));
test_mix("^", multiline_flags,
         Assertion("START_OF_LINE"));

test_mix("$", no_multiline_flags,
         Assertion("END_OF_INPUT"));
test_mix("$", multiline_flags,
         Assertion("END_OF_LINE"));

test_mix("\\b", all_flags,
         Assertion("BOUNDARY"));

test_mix("\\B", all_flags,
         Assertion("NON_BOUNDARY"));