diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-05-23 17:24:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-23 17:24:13 +0800 |
commit | 8c62d854ce90210d278707c9aff58f10c26e3c27 (patch) | |
tree | d69d09aaee2e5bcb99e7c9c644f73a742175bae4 /test/compress/string-literal.js | |
parent | 69931574e14d3ec58141b9ce2ef679f21caf5991 (diff) | |
download | tracifyjs-8c62d854ce90210d278707c9aff58f10c26e3c27.tar.gz tracifyjs-8c62d854ce90210d278707c9aff58f10c26e3c27.zip |
augment tests for `RegExp` (#3144)
Diffstat (limited to 'test/compress/string-literal.js')
-rw-r--r-- | test/compress/string-literal.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/compress/string-literal.js b/test/compress/string-literal.js index 1138fed8..5f49fb3e 100644 --- a/test/compress/string-literal.js +++ b/test/compress/string-literal.js @@ -14,6 +14,13 @@ issue_1929: { function f(s) { return s.split(/[\\/]/); } + console.log(JSON.stringify(f("A/B\\C\\D/E\\F"))); } - expect_exact: "function f(s){return s.split(/[\\\\/]/)}" + expect: { + function f(s) { + return s.split(/[\\/]/); + } + console.log(JSON.stringify(f("A/B\\C\\D/E\\F"))); + } + expect_stdout: '["A","B","C","D","E","F"]' } |