Skip to content

Commit

Permalink
Merge pull request #178 from metafacture/160-addIntegrationTestFor144
Browse files Browse the repository at this point in the history
Add integration test for #144
  • Loading branch information
TobiasNx authored Mar 1, 2022
2 parents 8a26985 + b35cfac commit 6b2105e
Show file tree
Hide file tree
Showing 20 changed files with 124 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See issue #144
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"animals" : [ {
"name" : "Jake",
"type" : "dog is cool"
}, {
"name" : "Blacky",
"type" : "bird"
} ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"animals": [
{
"name": "Jake",
"type": "dog"
},
{
"name": "Blacky",
"type": "bird"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
append("animals[].$last.type", " is cool")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FLUX_DIR + "input.json"
|open-file
|as-records
|decode-json
|fix(FLUX_DIR + "test.fix")
|encode-json(prettyPrinting="true")
|write(FLUX_DIR + "output-metafix.json")
;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See issue #144
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"animals" : [ {
"name" : "Jake",
"type" : "dog"
}, {
"name" : "Blacky",
"type" : "bird is cool"
} ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"animals": [
{
"name": "Jake",
"type": "dog"
},
{
"name": "Blacky",
"type": "bird"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
append("animals[].$first.type", " is cool")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FLUX_DIR + "input.json"
|open-file
|as-records
|decode-json
|fix(FLUX_DIR + "test.fix")
|encode-json(prettyPrinting="true")
|write(FLUX_DIR + "output-metafix.json")
;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See issue #144
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"animals" : [ {
"name" : "Jake",
"type" : "Big dog"
}, {
"name" : "Blacky",
"type" : "bird"
} ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"animals": [
{
"name": "Jake",
"type": "dog"
},
{
"name": "Blacky",
"type": "bird"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prepend("animals[].$first.type", "Big ")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FLUX_DIR + "input.json"
|open-file
|as-records
|decode-json
|fix(FLUX_DIR + "test.fix")
|encode-json(prettyPrinting="true")
|write(FLUX_DIR + "output-metafix.json")
;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See issue #144
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"animals" : [ {
"name" : "Jake",
"type" : "dog"
}, {
"name" : "Blacky",
"type" : "Big bird"
} ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"animals": [
{
"name": "Jake",
"type": "dog"
},
{
"name": "Blacky",
"type": "bird"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
append("animals[].$last.type", "Big ")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FLUX_DIR + "input.json"
|open-file
|as-records
|decode-json
|fix(FLUX_DIR + "test.fix")
|encode-json(prettyPrinting="true")
|write(FLUX_DIR + "output-metafix.json")
;

0 comments on commit 6b2105e

Please sign in to comment.