From 45fa4c84494cf1df2928a156230adfc71e96b346 Mon Sep 17 00:00:00 2001 From: "Alexey Ten (Lynn)" Date: Thu, 25 Jul 2013 19:57:00 +0400 Subject: [PATCH] test for issue #198 --- tests/json.23.yate | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/json.23.yate 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 }

+ +} +