aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Bataev <roman.bataev@gmail.com>2013-04-03 22:34:19 -0400
committerRoman Bataev <roman.bataev@gmail.com>2013-04-03 22:34:19 -0400
commitb956e5f1d9606f6fa6217826c4665316267e8a8f (patch)
treefdc2a9ff776116cc6d0b4bcbf7bfa5187495f518
parent37d7cb8565ec3edba6de464a42e7b163a4e30a58 (diff)
downloadtracifyjs-b956e5f1d9606f6fa6217826c4665316267e8a8f.tar.gz
tracifyjs-b956e5f1d9606f6fa6217826c4665316267e8a8f.zip
Add tests for typeof evaluation
-rw-r--r--test/compress/typeof.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/compress/typeof.js b/test/compress/typeof.js
new file mode 100644
index 00000000..cefdd43c
--- /dev/null
+++ b/test/compress/typeof.js
@@ -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';
+ }
+}