From d7edba39661a134cd8bdee8d4cdc147b41a5104d Mon Sep 17 00:00:00 2001 From: anomal00us <95467104+anomal00us@users.noreply.github.com> Date: Wed, 20 Jul 2022 17:43:52 +0200 Subject: Fixing test result and updating the spec (squashed) (coauthored) Update specs/~dynamic-names.yml Co-authored-by: Julian Gonggrijp Update specs/~dynamic-names.yml Co-authored-by: Julian Gonggrijp Update specs/~dynamic-names.yml Co-authored-by: Julian Gonggrijp --- specs/~dynamic-names.json | 2 +- specs/~dynamic-names.yml | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/specs/~dynamic-names.json b/specs/~dynamic-names.json index dead87d..3f3931b 100644 --- a/specs/~dynamic-names.json +++ b/specs/~dynamic-names.json @@ -155,7 +155,7 @@ "partials": { "partial": "\"{{value}}\"" }, - "expected": "\"\"" + "expected": "\"\"\"\"" }, { "name": "Recursion", diff --git a/specs/~dynamic-names.yml b/specs/~dynamic-names.yml index 87a2c5f..6c2a2d4 100644 --- a/specs/~dynamic-names.yml +++ b/specs/~dynamic-names.yml @@ -33,6 +33,7 @@ overview: | In engines that also implement the optional inheritance spec, Dynamic Names inside Parent tags should be supported as well. Dynamic Names cannot be resolved more than once (Dynamic Names cannot be nested). + tests: - name: Basic Behavior - Partial desc: The asterisk operator is used for dynamic partials. @@ -69,7 +70,7 @@ tests: partials: { partial: '*{{text}}*' } expected: '"*Hello, world!*"' - - name: Dotted Names - Failed Lookup + - name: Dotted Names - Operator Precedence desc: The dynamic partial should operate within the current context. data: text: 'Hello, world!' @@ -121,7 +122,7 @@ tests: template: "{{#section1}}{{>*section2.dynamic}}{{/section1}}" partials: partial: '"{{value}}"' - expected: '""' + expected: '""""' - name: Recursion desc: Dynamic partials should properly recurse. @@ -137,9 +138,9 @@ tests: - name: Surrounding Whitespace desc: | - A dynamic partials should not alter surrounding whitespace; any - whitespace preceding the tag should treated as indentation while any - whitepsace succeding the tag should be left untouched. + A dynamic partial should not alter surrounding whitespace; any + whitespace preceding the tag should be treated as indentation while any + whitespace succeding the tag should be left untouched. data: { partial: 'foobar' } template: '| {{>*partial}} |' partials: { foobar: "\t|\t" } -- cgit v1.2.1