summaryrefslogtreecommitdiff
path: root/specs/comments.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/comments.yml')
-rw-r--r--specs/comments.yml45
1 files 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