Add test
authorAnthony Van de Gejuchte <anthonyvdgent@yahoo.com>
Mon, 19 Jan 2015 23:31:44 +0000 (00:31 +0100)
committerAnthony Van de Gejuchte <anthonyvdgent@yahoo.com>
Mon, 19 Jan 2015 23:31:44 +0000 (00:31 +0100)
test/compress/unicode.js [new file with mode: 0644]

diff --git a/test/compress/unicode.js b/test/compress/unicode.js
new file mode 100644 (file)
index 0000000..9fb9ab8
--- /dev/null
@@ -0,0 +1,17 @@
+unicode_parse_variables: {
+    options = {};
+    input: {
+        var a = {};
+        a.你好 = 456;
+
+        var ↂωↂ = 123;
+        var l০ = 3; // 2nd char is a unicode digit
+    }
+    expect: {
+        var a = {};
+        a.你好 = 456;
+
+        var ↂωↂ = 123;
+        var l০ = 3;
+    }
+}