summaryrefslogtreecommitdiff
path: root/specs/inverted.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/inverted.yml')
-rw-r--r--specs/inverted.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/specs/inverted.yml b/specs/inverted.yml
index 1e2c4fd..33b0a14 100644
--- a/specs/inverted.yml
+++ b/specs/inverted.yml
@@ -57,6 +57,12 @@ tests:
template: "| A {{^bool}}B {{^bool}}C{{/bool}} D{{/bool}} E |"
expected: "| A E |"
+ - name: Context Misses
+ desc: Failed context lookups should be considered falsey.
+ data: { }
+ template: "[{{^missing}}Cannot find key 'missing'!{{/missing}}]"
+ expected: "[Cannot find key 'missing'!]"
+
# Whitespace Sensitivity
- name: Surrounding Whitespace