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