From 511acd9f5e2688c4f1ac43833a3e71c11683db3c Mon Sep 17 00:00:00 2001 From: Julian Gonggrijp Date: Sun, 11 Aug 2024 22:14:45 +0200 Subject: [PATCH] Add missing test to JSON conversion --- specs/interpolation.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/specs/interpolation.json b/specs/interpolation.json index d758657..427a1b4 100644 --- a/specs/interpolation.json +++ b/specs/interpolation.json @@ -19,6 +19,16 @@ "template": "Hello, {{subject}}!\n", "expected": "Hello, world!\n" }, + { + "name": "No Re-interpolation", + "desc": "Interpolated tag output should not be re-interpolated.", + "data": { + "template": "{{planet}}", + "planet": "Earth" + }, + "template": "{{template}}: {{planet}}", + "expected": "{{planet}}: Earth" + }, { "name": "HTML Escaping", "desc": "Basic interpolation should be HTML escaped.",