Skip to content

Commit 975544f

Browse files
committed
Add integtration test fo #234
1 parent ecbf3d8 commit 975544f

File tree

16 files changed

+111
-0
lines changed

16 files changed

+111
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"test" : "cat",
3+
"animals" : [ "cat", "dog", "zebra" ]
4+
}
5+
{
6+
"test" : "cat",
7+
"animal" : [ "parrot", "dog", "zebra" ]
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"test" : "cat",
3+
"animals" : [ "cat", "dog", "zebra" ]
4+
}
5+
{
6+
"test" : "cat",
7+
"animal" : [ "parrot", "dog", "zebra" ]
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
unless in("test","animals[]")
2+
add_field("this","works")
3+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FLUX_DIR + "input.json"
2+
|open-file
3+
|as-records
4+
|decode-json
5+
|fix(FLUX_DIR + "test.fix")
6+
|encode-json(prettyPrinting="true")
7+
|write(FLUX_DIR + "output-metafix.json")
8+
;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"test" : "cat",
3+
"animal" : "cat"
4+
}
5+
{
6+
"test" : "cat",
7+
"animal" : "dog",
8+
"this" : "works"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"test" : "cat",
3+
"animal" : "cat"
4+
}
5+
{
6+
"test" : "cat",
7+
"animal" : "dog"
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
unless in("animal","test")
2+
add_field("this","works")
3+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FLUX_DIR + "input.json"
2+
|open-file
3+
|as-records
4+
|decode-json
5+
|fix(FLUX_DIR + "test.fix")
6+
|encode-json(prettyPrinting="true")
7+
|write(FLUX_DIR + "output-metafix.json")
8+
;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"test" : "cat",
3+
"animals" : [ "cat", "dog", "zebra" ]
4+
}
5+
{
6+
"test" : "cat",
7+
"animal" : [ "parrot", "dog", "zebra" ],
8+
"this" : "works"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"test" : "cat",
3+
"animals" : [ "cat", "dog", "zebra" ]
4+
}
5+
{
6+
"test" : "cat",
7+
"animal" : [ "parrot", "dog", "zebra" ]
8+
}

0 commit comments

Comments
 (0)