Skip to content

Commit

Permalink
Add integration test for #116
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Mar 1, 2022
1 parent 5496856 commit 7958d80
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See issue #116
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"test" : "test",
"key" : "new_value"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"test" : "test",
"key" : "old_value"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_field("key", "new_value")
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 #116
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"test" : "test",
"key" : "new_value",
"key_2" : "new_value"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"test" : "test",
"key" : "old_value",
"key_2" : "new_value"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
copy_field("key_2", "key")
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 #116
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"test" : "test",
"key" : "new_value"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"test" : "test",
"key" : "old_value",
"key_2" : "new_value"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
move_field("key_2", "key")
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 7958d80

Please sign in to comment.