diff options
Diffstat (limited to 'test/compress/unicode.js')
-rw-r--r-- | test/compress/unicode.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/compress/unicode.js b/test/compress/unicode.js index 9fb9ab8c..4dbc197c 100644 --- a/test/compress/unicode.js +++ b/test/compress/unicode.js @@ -15,3 +15,43 @@ unicode_parse_variables: { var l০ = 3; } } + +issue_2242_1: { + beautify = { + ascii_only: false, + } + input: { + console.log("\ud83d", "\ude00", "\ud83d\ude00", "\ud83d@\ude00"); + } + expect_exact: 'console.log("\\ud83d","\\ude00","\ud83d\ude00","\\ud83d@\\ude00");' +} + +issue_2242_2: { + beautify = { + ascii_only: true, + } + input: { + console.log("\ud83d", "\ude00", "\ud83d\ude00", "\ud83d@\ude00"); + } + expect_exact: 'console.log("\\ud83d","\\ude00","\\ud83d\\ude00","\\ud83d@\\ude00");' +} + +issue_2242_3: { + options = { + evaluate: false, + } + input: { + console.log("\ud83d" + "\ude00", "\ud83d" + "@" + "\ude00"); + } + expect_exact: 'console.log("\\ud83d"+"\\ude00","\\ud83d"+"@"+"\\ude00");' +} + +issue_2242_4: { + options = { + evaluate: true, + } + input: { + console.log("\ud83d" + "\ude00", "\ud83d" + "@" + "\ude00"); + } + expect_exact: 'console.log("\ud83d\ude00","\\ud83d@\\ude00");' +} |