From 77fa88dfd41783c979b548a214bed0d176aea0ee Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 13 Jul 2021 13:36:01 +0200 Subject: [PATCH] Add extra example --- javascript/interpret.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/javascript/interpret.ts b/javascript/interpret.ts index 5c454b3..ee4ee89 100644 --- a/javascript/interpret.ts +++ b/javascript/interpret.ts @@ -1,6 +1,5 @@ const interpret = (definitionFile, tags) => { - } @@ -15,4 +14,18 @@ const example = interpret({ }) -console.log("Expect", 1.2, "got", example) \ No newline at end of file +console.log("Expect", 1.2, "got", example) + +const example1 = interpret({ + "$multiply": { + "highway": { + "residential": 1.2 + }, + "surface": {"asphalt": 1.1} + } + }, + { + "highway": "residential", + "surface": "asphalt" + + }) \ No newline at end of file