diff options
author | Roman Bataev <roman.bataev@gmail.com> | 2013-04-03 22:34:19 -0400 |
---|---|---|
committer | Roman Bataev <roman.bataev@gmail.com> | 2013-04-03 22:34:19 -0400 |
commit | b956e5f1d9606f6fa6217826c4665316267e8a8f (patch) | |
tree | fdc2a9ff776116cc6d0b4bcbf7bfa5187495f518 | |
parent | 37d7cb8565ec3edba6de464a42e7b163a4e30a58 (diff) | |
download | tracifyjs-b956e5f1d9606f6fa6217826c4665316267e8a8f.tar.gz tracifyjs-b956e5f1d9606f6fa6217826c4665316267e8a8f.zip |
Add tests for typeof evaluation
-rw-r--r-- | test/compress/typeof.js | 25 |
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'; + } +} |