Permalink
Browse files

Add two failing test cases for the for statement

  • Loading branch information...
1 parent 9029d72 commit 13c53fbda6437a8c54ef888bc0a906a4420226be @agriffis agriffis committed May 20, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/slimit/tests/test_minifier.py
@@ -380,6 +380,12 @@ def assertMinified(self, source, expected):
# function call in FOR init
('for(o(); i < 3; i++) {}', 'for(o();i<3;i++){}'),
+ # unary increment operator in FOR init
+ ('for(i++; i < 3; i++) {}', 'for(i++;i<3;i++){}'),
+
+ # unary decrement operator in FOR init
+ ('for(i--; i < 3; i++) {}', 'for(i--;i<3;i++){}'),
+
# https://github.com/rspivak/slimit/issues/32
("""
Name.prototype = {

0 comments on commit 13c53fb

Please sign in to comment.