Skip to content

Commit

Permalink
refactor(tests) tests to fixtures - regexpConstructors (#762)
Browse files Browse the repository at this point in the history
* refactor(tests) tests to fixtures - regexpConstructors

* address review comments
  • Loading branch information
vigneshshanmugam authored and boopathi committed Dec 19, 2017
1 parent e6a189c commit cf9a0da
Show file tree
Hide file tree
Showing 24 changed files with 34 additions and 148 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const foo = "ab+";
const bar = "c\\w";
const flags = "g";
const ret = new RegExp(foo + bar + "d", flags);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const foo = "ab+";
const bar = "c\\w";
const flags = "g";
const ret = /ab+c\wd/g;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = new RegExp("");
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = /(?:)/;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = new RegExp("\\w+\\s");
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = /\w+\s/;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = new RegExp(foo(), "g");
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = new RegExp(foo(), "g");
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var x = new RegExp("/x/");
var y = new RegExp("\\/");
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var x = /\/x\//;
var y = /\//;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = new RegExp("\\n");
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = /\n/;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = new RegExp();
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = /(?:)/;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = new RegExp("\0");
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = /\0/;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var x = new RegExp("ab+c");
var y = new RegExp("ab+c", "gimuy");
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var x = /ab+c/;
var y = /ab+c/gimuy;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = new RegExp("\u2028\u2029");
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = /\u2028\u2029/;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = new RegExp("\b\f\v\t\r\n\n");
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = /[\b]\f\v \r\n\n/;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const runner = require("test-runner");
runner(__dirname);

This file was deleted.

0 comments on commit cf9a0da

Please # to comment.