Permalink
Browse files

more tests

  • Loading branch information...
1 parent 2169260 commit 8809c02632074a3b950be1c10a0ab3960f529fe3 @tj tj committed Mar 4, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/jade.test.js
View
7 test/jade.test.js
@@ -524,6 +524,13 @@ module.exports = {
assert.equal('<p id="user-1"></p>', render('p(id: "user-" + 1)'));
assert.equal('<p class="user-1"></p>', render('p(class: "user-" + 1)'));
},
+
+ 'test code buffering': function(assert){
+ assert.equal('<p></p>', render('p= null'));
+ assert.equal('<p></p>', render('p= undefined'));
+ assert.equal('<p>0</p>', render('p= 0'));
+ assert.equal('<p>false</p>', render('p= false'));
+ },
'test comments': function(assert){
// Regular

0 comments on commit 8809c02

Please sign in to comment.