From cf57a4a0756604e66f8d589e55f90358ab01f6f3 Mon Sep 17 00:00:00 2001 From: Amit Upadhyay Date: Sat, 1 Feb 2025 11:14:39 +0530 Subject: [PATCH] ftd.json covering more scenarios in test --- ftd/t/js/99-ftd-json.ftd | 15 ++++++++++++++- ftd/t/js/99-ftd-json.html | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ftd/t/js/99-ftd-json.ftd b/ftd/t/js/99-ftd-json.ftd index 6ebc57694..dee5fccb6 100644 --- a/ftd/t/js/99-ftd-json.ftd +++ b/ftd/t/js/99-ftd-json.ftd @@ -1,5 +1,18 @@ -- integer x: 20 +-- record foo: +integer x: +string y: +boolean z: + +-- foo f: +x: $x +y: hello +z: false + -- ftd.json: +yo-data: $x +f: $f name: Bob -age: $x +inline: 12 +bool: false diff --git a/ftd/t/js/99-ftd-json.html b/ftd/t/js/99-ftd-json.html index 62d872a15..1689f1663 100644 --- a/ftd/t/js/99-ftd-json.html +++ b/ftd/t/js/99-ftd-json.html @@ -1 +1 @@ -{"age":20,"name":"Bob"} \ No newline at end of file +{"bool":false,"f":{"x":20,"y":"hello","z":false},"inline":12.0,"name":"Bob","yo-data":20} \ No newline at end of file