Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
Merge pull request #175 from metafacture/160-integrationTestFor148
Browse files Browse the repository at this point in the history
Add integration test for #148
  • Loading branch information
TobiasNx authored Feb 28, 2022
2 parents 2a35b97 + dab9fa9 commit e73009f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See issue #148
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"a" : [ "b", "c", "d" ],
"m" : [ "m", "o", "p" ],
"z" : [ [ "b", "c", "d" ], "m", "o", "p" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"a" : [ "b", "c", "d" ],
"m" : [ "m", "o", "p" ],
"z" : [ ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
copy_field("a[]", "z[].$append")
copy_field("m[].*", "z[].$append")
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 e73009f

Please sign in to comment.