From b956e5f1d9606f6fa6217826c4665316267e8a8f Mon Sep 17 00:00:00 2001 From: Roman Bataev Date: Wed, 3 Apr 2013 22:34:19 -0400 Subject: Add tests for typeof evaluation --- test/compress/typeof.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/compress/typeof.js (limited to 'test') 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'; + } +} -- cgit v1.2.3