Add extra example
This commit is contained in:
parent
12fc26fa44
commit
77fa88dfd4
1 changed files with 15 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
||||||
const interpret = (definitionFile, tags) => {
|
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"
|
||||||
|
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue