-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional integration test for #92
- Loading branch information
Showing
10 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...n/record/fromJson/toJson/copy_fieldObjectFromArrayOfObjectsWithFirstWildcard/disabled.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See issue #92 |
12 changes: 12 additions & 0 deletions
12
.../record/fromJson/toJson/copy_fieldObjectFromArrayOfObjectsWithFirstWildcard/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"test" : [ { | ||
"key" : "value_1" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3" | ||
} ], | ||
"test_2" : { | ||
"key" : "value_1" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ion/record/fromJson/toJson/copy_fieldObjectFromArrayOfObjectsWithFirstWildcard/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"test": [{ | ||
"key": "value_1" | ||
},{ | ||
"key": "value_2" | ||
},{ | ||
"key": "value_3" | ||
}] | ||
} |
1 change: 1 addition & 0 deletions
1
...ation/record/fromJson/toJson/copy_fieldObjectFromArrayOfObjectsWithFirstWildcard/test.fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
copy_field("test[].$first", "test_2") |
8 changes: 8 additions & 0 deletions
8
...tion/record/fromJson/toJson/copy_fieldObjectFromArrayOfObjectsWithFirstWildcard/test.flux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
; |
1 change: 1 addition & 0 deletions
1
...on/record/fromJson/toJson/copy_fieldObjectFromArrayOfObjectsWithLastWildcard/disabled.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See issue #92 |
12 changes: 12 additions & 0 deletions
12
...n/record/fromJson/toJson/copy_fieldObjectFromArrayOfObjectsWithLastWildcard/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"test" : [ { | ||
"key" : "value_1" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3" | ||
} ], | ||
"test_2" : { | ||
"key" : "value_3" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...tion/record/fromJson/toJson/copy_fieldObjectFromArrayOfObjectsWithLastWildcard/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"test": [{ | ||
"key": "value_1" | ||
},{ | ||
"key": "value_2" | ||
},{ | ||
"key": "value_3" | ||
}] | ||
} |
1 change: 1 addition & 0 deletions
1
...ration/record/fromJson/toJson/copy_fieldObjectFromArrayOfObjectsWithLastWildcard/test.fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
copy_field("test[].$last", "test_2") |
8 changes: 8 additions & 0 deletions
8
...ation/record/fromJson/toJson/copy_fieldObjectFromArrayOfObjectsWithLastWildcard/test.flux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
; |