Add extra example

This commit is contained in:
Pieter Vander Vennet 2021-07-13 13:36:01 +02:00
parent 12fc26fa44
commit 77fa88dfd4

View file

@ -1,6 +1,5 @@
const interpret = (definitionFile, tags) => {
}
@ -15,4 +14,18 @@ const example = interpret({
})
console.log("Expect", 1.2, "got", example)
console.log("Expect", 1.2, "got", example)
const example1 = interpret({
"$multiply": {
"highway": {
"residential": 1.2
},
"surface": {"asphalt": 1.1}
}
},
{
"highway": "residential",
"surface": "asphalt"
})