Permalink
Browse files

Add tests for typeof evaluation

  • Loading branch information...
1 parent 37d7cb8 commit b956e5f1d9606f6fa6217826c4665316267e8a8f @candid82 candid82 committed Apr 4, 2013
Showing with 25 additions and 0 deletions.
  1. +25 −0 test/compress/typeof.js
View
@@ -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';
+ }
+}

0 comments on commit b956e5f

Please sign in to comment.