diff options
-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'; + } +} |