diff --git a/test/unit.interpreter.js b/test/unit.interpreter.js index 0f429b6..c2046d0 100644 --- a/test/unit.interpreter.js +++ b/test/unit.interpreter.js @@ -385,12 +385,27 @@ test("'=' (Set Delimiter)", function() { }); test("'!' (Comments)", function() { - expect(1); + expect(4); + equals( + Mustache.to_html('{{! this is a single line comment !}}'), + '', + 'Single Line Comments'); + + equals( + Mustache.to_html('{{!this is a multiline comment\ni said this is a multiline comment!}}'), + '', + 'Multiline Comments'); + + equals( + Mustache.to_html('{{!this {{is}} {{#a}} {{/multiline}} comment\ni {{^said}} ! hello !! bye!}}'), + '', + 'Correct tokenization'); + // matches comments.html equals( Mustache.to_html( - '