diff options
author | anomal00us <95467104+anomal00us@users.noreply.github.com> | 2022-07-20 17:43:52 +0200 |
---|---|---|
committer | root <root@delphi.lan> | 2022-08-08 21:07:58 +0200 |
commit | d7edba39661a134cd8bdee8d4cdc147b41a5104d (patch) | |
tree | 2ef10715778b163da0788160fc66bef8405e9732 | |
parent | 7e356c558a3250a475a4a5824ea5ae2c165352ab (diff) | |
download | mustache-spec-d7edba39661a134cd8bdee8d4cdc147b41a5104d.tar.gz |
Fixing test result and updating the spec (squashed) (coauthored)
Update specs/~dynamic-names.yml
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
Update specs/~dynamic-names.yml
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
Update specs/~dynamic-names.yml
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
-rw-r--r-- | specs/~dynamic-names.json | 2 | ||||
-rw-r--r-- | 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" } |