Add tests for typeof evaluation
authorRoman Bataev <roman.bataev@gmail.com>
Thu, 4 Apr 2013 02:34:19 +0000 (22:34 -0400)
committerRoman Bataev <roman.bataev@gmail.com>
Thu, 4 Apr 2013 02:34:19 +0000 (22:34 -0400)
test/compress/typeof.js [new file with mode: 0644]

diff --git a/test/compress/typeof.js b/test/compress/typeof.js
new file mode 100644 (file)
index 0000000..cefdd43
--- /dev/null
@@ -0,0 +1,25 @@
+typeof_evaluation: {
+    options = {
+        evaluate: true
+    };
+    input: {
+        a = typeof 1;
+        b = typeof 'test';
+        c = typeof [];
+        d = typeof {};
+        e = typeof /./;
+        f = typeof false;
+        g = typeof function(){};
+        h = typeof undefined;
+    }
+    expect: {
+        a='number';
+        b='string';
+        c=typeof[];
+        d=typeof{};
+        e=typeof/./;
+        f='boolean';
+        g='function';
+        h='undefined';
+    }
+}