Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Feb 14, 2018
1 parent 82fd89b commit 4bf6c11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/tests-regexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,7 @@ test("/[\\d][\\12-\\14]{1,}[^\\d]/", {}, { ecmaVersion: 5 })
test("/[\\d][\\12-\\14]{1,}[^\\d]/", {}, { ecmaVersion: 2015 })
testFail("/[\\d][\\12-\\14]{1,}[^\\d]/u", "Invalid regular expression flag (1:1)", { ecmaVersion: 5 })
testFail("/[\\d][\\12-\\14]{1,}[^\\d]/u", "Invalid regular expression: /[\\d][\\12-\\14]{1,}[^\\d]/: Invalid class escape (1:1)", { ecmaVersion: 2015 })
test("/([a ]\\b)*\\b/", {}, { ecmaVersion: 5 })

/*
// This is test case generator.
Expand Down

0 comments on commit 4bf6c11

Please sign in to comment.