Skip to content

Commit

Permalink
Add tests for typeof evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Bataev committed Apr 4, 2013
1 parent 37d7cb8 commit b956e5f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions 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';
}
}

0 comments on commit b956e5f

Please sign in to comment.