Lines Matching full:regexp
6 function testEscapes(expected, regexp) {
7 assertEquals(expected, regexp.source);
8 assertEquals("/" + expected + "/", regexp.toString());
13 testEscapes("\\/", new RegExp("/"));
14 testEscapes("\\/", new RegExp("\\/"));
15 testEscapes("\\\\/", new RegExp("\\\\/"));
16 testEscapes("\\/\\/", new RegExp("\\/\\/"));
17 testEscapes("\\/\\/\\/\\/", new RegExp("////"));
18 testEscapes("\\/\\/\\/\\/", new RegExp("\\//\\//"));
19 testEscapes("(?:)", new RegExp(""));