summaryrefslogtreecommitdiff
path: root/specs/delimiters.yml
diff options
context:
space:
mode:
authorPieter van de Bruggen <pvande@gmail.com>2011-03-08 21:12:49 -0800
committerPieter van de Bruggen <pvande@gmail.com>2011-03-08 21:14:38 -0800
commit53b22b1bf883736de97cb1712496315b67a2008e (patch)
tree8b9b167193b03f2f085c5b2bc25755e96ec43d8c /specs/delimiters.yml
parentb3223d95727a90f6011a29a9bc1e1b103e3e3304 (diff)
downloadmustache-spec-53b22b1bf883736de97cb1712496315b67a2008e.tar.gz
Added tests for standalone tags at string boundaries.
Diffstat (limited to 'specs/delimiters.yml')
-rw-r--r--specs/delimiters.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/specs/delimiters.yml b/specs/delimiters.yml
index 36a9b9b..ce80b17 100644
--- a/specs/delimiters.yml
+++ b/specs/delimiters.yml
@@ -137,6 +137,18 @@ tests:
template: "|\r\n{{= @ @ =}}\r\n|"
expected: "|\r\n|"
+ - name: Standalone Without Previous Line
+ desc: Standalone tags should not require a newline to precede them.
+ data: { }
+ template: " {{=@ @=}}\n="
+ expected: "="
+
+ - name: Standalone Without Newline
+ desc: Standalone tags should not require a newline to follow them.
+ data: { }
+ template: "=\n {{=@ @=}}"
+ expected: "=\n"
+
# Whitespace Insensitivity
- name: Pair with Padding