diff --git a/tests/json.23.yate b/tests/json.23.yate new file mode 100644 index 0000000..d01adac --- /dev/null +++ b/tests/json.23.yate @@ -0,0 +1,33 @@ +/// { +/// description: 'inline object as a function param', +/// data: { +/// item: [ +/// { text: 'First' }, +/// { text: 'Second' }, +/// { text: 'Third' } +/// ] +/// }, +/// known: true, +/// result: '

Hello, World

' +/// } + +match / { + foo({ + "title": "Hello, World" + "item": [ + for .item { + .text + } + ] + }) +} + +func foo(nodeset a) { +

{ a.title }

+ +} +