From c0b03a97e20f4698bb53353d544526b36a9c0a7d Mon Sep 17 00:00:00 2001 From: Julian Gonggrijp Date: Sun, 11 Aug 2024 22:00:51 +0200 Subject: [PATCH] Add JSON conversion for dotted keys tests (#180) --- specs/interpolation.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/specs/interpolation.json b/specs/interpolation.json index d758657..58a16c5 100644 --- a/specs/interpolation.json +++ b/specs/interpolation.json @@ -271,6 +271,27 @@ "template": "{{#a}}{{b.c}}{{/a}}", "expected": "" }, + { + "name": "Dotted Names are never single keys", + "desc": "Dotted names shall not be parsed as single, atomic keys", + "data": { + "a.b": "c" + }, + "template": "{{a.b}}", + "expected": "" + }, + { + "name": "Dotted Names - No Masking", + "desc": "Dotted Names in a given context are unvavailable due to dot splitting", + "data": { + "a.b": "c", + "a": { + "b": "d" + } + }, + "template": "{{a.b}}", + "expected": "d" + }, { "name": "Implicit Iterators - Basic Interpolation", "desc": "Unadorned tags should interpolate content into the template.",