From 8854760cb9b5984a526126d76826bd00e079242d Mon Sep 17 00:00:00 2001 From: Pieter van de Bruggen Date: Tue, 16 Nov 2010 07:33:10 -0800 Subject: Untangling the coment specs. --- specs/comments.yml | 45 +++++++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/specs/comments.yml b/specs/comments.yml index 38ab927..6c2ea98 100644 --- a/specs/comments.yml +++ b/specs/comments.yml @@ -17,31 +17,52 @@ tests: 1234567890 - name: Standalone - desc: Standalone comment lines should be entirely removed. + desc: All standalone comment lines should be removed. data: { } template: | - 123 + Begin. {{! Comment Block! }} - 4567 + End. + expected: | + Begin. + End. + + - name: Indented Standalone + desc: All standalone comment lines should be removed. + data: { } + template: | + Begin. {{! Indented Comment Block! }} - 890 + End. expected: | - 123 - 4567 - 890 + Begin. + End. - name: Multiline Standalone - desc: All lines of a standalone multiline comment should be removed. + desc: All standalone comment lines should be removed. + data: { } + template: | + Begin. + {{! + Something's going on here... + }} + End. + expected: | + Begin. + End. + + - name: Indented Multiline Standalone + desc: All standalone comment lines should be removed. data: { } template: | - Hello + Begin. {{! Something's going on here... }} - Goodbye + End. expected: | - Hello - Goodbye + Begin. + End. - name: Indented Inline desc: Inline comments should not strip whitespace -- cgit v1.2.1