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

Commit

Permalink
Add integration test for #121
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Mar 1, 2022
1 parent c4e0da9 commit 92954a0
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"key" : [ ],
"words" : [ "value", "more_value", "even_more_value" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"key" : [ "value", "more_value", "even_more_value" ],
"words" : [ ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
move_field("key[].*", "words[].$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")
;
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"key" : [ "value", "m__re_value", "even_m__re_value" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"key" : [ "value", "more_value", "even_more_value" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
replace_all("test[].*", "o", "__")
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 92954a0

Please sign in to comment.