Skip to content

Commit 81b676b

Browse files
authored
Merge pull request #194 from metafacture/160-moreIntegrationTests
160-moreIntegrationTests
2 parents 02652c9 + 9c13a74 commit 81b676b

File tree

257 files changed

+1370
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+1370
-86
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"arrayOfObjects_1" : [ {
3+
"name" : "red",
4+
"type" : "color"
5+
}, {
6+
"name" : "green",
7+
"type" : "color"
8+
}, {
9+
"name" : "blue",
10+
"type" : "color"
11+
} ],
12+
"arrayOfObjects_2" : [ {
13+
"name" : "purple",
14+
"type" : "color"
15+
}, {
16+
"name" : "orange",
17+
"type" : "color"
18+
}, {
19+
"name" : "yellow",
20+
"type" : "color"
21+
} ],
22+
"test" : [ "red", "green", "blue", "purple", "orange", "yellow" ]
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"arrayOfObjects_1" : [ {
3+
"name": "red",
4+
"type" : "color"
5+
}, {
6+
"name":"green",
7+
"type" : "color"
8+
}, {
9+
"name":"blue",
10+
"type" : "color"
11+
} ],
12+
"arrayOfObjects_2" : [ {
13+
"name": "purple",
14+
"type" : "color"
15+
}, {
16+
"name":"orange",
17+
"type" : "color"
18+
}, {
19+
"name":"yellow",
20+
"type" : "color"
21+
} ],
22+
"test" : [ ]
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
do list(path: "arrayOfObjects??[]", "var": "$i")
2+
copy_field("$i.name", "test[].$append")
3+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"arrayOfObjects" : [ {
3+
"name" : "red",
4+
"type" : "color"
5+
}, {
6+
"name" : "green",
7+
"type" : "color"
8+
}, {
9+
"name" : "blue",
10+
"type" : "color"
11+
} ],
12+
"test" : {
13+
"key" : "red"
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"arrayOfObjects" : [ {
3+
"name": "red",
4+
"type" : "color"
5+
}, {
6+
"name":"green",
7+
"type" : "color"
8+
}, {
9+
"name":"blue",
10+
"type" : "color"
11+
} ]
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
do list(path: "arrayOfObjects[]", "var": "$i")
2+
unless exists("test.key")
3+
copy_field("$i.name", "test.key")
4+
end
5+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"arrayOfObjects" : [ {
3+
"name" : "red",
4+
"type" : "color"
5+
}, {
6+
"name" : "green",
7+
"type" : "color"
8+
}, {
9+
"name" : "blue",
10+
"type" : "color"
11+
} ],
12+
"array" : [ "red", "green", "blue" ]
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"arrayOfObjects" : [ {
3+
"name": "red",
4+
"type" : "color"
5+
}, {
6+
"name":"green",
7+
"type" : "color"
8+
}, {
9+
"name":"blue",
10+
"type" : "color"
11+
} ],
12+
"array" : [ ]
13+
}

0 commit comments

Comments
 (0)