This repository has been archived by the owner on Jan 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and add integration tests for #121
and for the functions that are discussed in #121
- Loading branch information
Showing
71 changed files
with
398 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...metafix/integration/method/fromJson/toJson/join_fieldSimpleAndChangeToArray/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,3 @@ | ||
{ | ||
"investigators" : "Justus?Peter?Bob" | ||
} |
3 changes: 3 additions & 0 deletions
3
...re/metafix/integration/method/fromJson/toJson/join_fieldSimpleAndChangeToArray/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,3 @@ | ||
{ | ||
"investigators" : [ "Justus", "Peter", "Bob" ] | ||
} |
2 changes: 2 additions & 0 deletions
2
...ture/metafix/integration/method/fromJson/toJson/join_fieldSimpleAndChangeToArray/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,2 @@ | ||
join_field("investigators[]","?") | ||
move_field("investigators[]","investigators") |
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
...s/org/metafacture/metafix/integration/method/fromJson/toJson/renameInObject/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,18 @@ | ||
{ | ||
"object" : { | ||
"__key" : "word", | ||
"key" : "word", | ||
"key_2" : "word_2", | ||
"__bject" : { | ||
"key_3" : "word_3", | ||
"array##fStrings" : [ "test", "test_2", "test_3" ] | ||
}, | ||
"array##f##bjects" : [ { | ||
"key_4" : "word_4", | ||
"array##fStrings_2" : [ "test", "test_2", "test_3" ] | ||
}, { | ||
"__key_2" : "word_2", | ||
"array##fStrings" : [ "test", "test_2", "test_3" ] | ||
} ] | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...rces/org/metafacture/metafix/integration/method/fromJson/toJson/renameInObject/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,18 @@ | ||
{ | ||
"object" : { | ||
"okey" : "word", | ||
"key" : "word", | ||
"key_2" : "word_2", | ||
"object" : { | ||
"key_3" : "word_3", | ||
"arrayOfStrings" : [ "test", "test_2", "test_3" ] | ||
}, | ||
"arrayOfObjects" : [ { | ||
"key_4" : "word_4", | ||
"arrayOfStrings_2" : [ "test", "test_2", "test_3" ] | ||
}, { | ||
"okey_2" : "word_2", | ||
"arrayOfStrings" : [ "test", "test_2", "test_3" ] | ||
} ] | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...ources/org/metafacture/metafix/integration/method/fromJson/toJson/renameInObject/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,2 @@ | ||
rename("object", "o", "__") | ||
rename("object", "O", "##") |
8 changes: 8 additions & 0 deletions
8
...urces/org/metafacture/metafix/integration/method/fromJson/toJson/renameInObject/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") | ||
; |
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...tafix/integration/method/fromJson/toJson/replace_allInArrayOfStringsWithAsterisk/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 @@ | ||
replace_all("key[].*", "o", "__") |
8 changes: 8 additions & 0 deletions
8
...afix/integration/method/fromJson/toJson/replace_allInArrayOfStringsWithAsterisk/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") | ||
; |
12 changes: 12 additions & 0 deletions
12
...on/method/fromJson/toJson/replace_allInSubfieldOfArrayOfObjectsWithAsterisk/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 @@ | ||
{ | ||
"key" : [ { | ||
"foo" : "bar", | ||
"word" : "value" | ||
}, { | ||
"foo" : "bar", | ||
"word" : "m__re_value" | ||
}, { | ||
"foo" : "bar", | ||
"word" : "even_m__re_value" | ||
} ] | ||
} |
12 changes: 12 additions & 0 deletions
12
...ation/method/fromJson/toJson/replace_allInSubfieldOfArrayOfObjectsWithAsterisk/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,12 @@ | ||
{ | ||
"key" : [ { | ||
"word" : "value", | ||
"foo" : "bar" | ||
}, { | ||
"word" : "more_value", | ||
"foo" : "bar" | ||
}, { | ||
"word" : "even_more_value", | ||
"foo" : "bar" | ||
} ] | ||
} |
1 change: 1 addition & 0 deletions
1
...gration/method/fromJson/toJson/replace_allInSubfieldOfArrayOfObjectsWithAsterisk/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 @@ | ||
replace_all("key[].*.word", "o", "__") |
8 changes: 8 additions & 0 deletions
8
...ration/method/fromJson/toJson/replace_allInSubfieldOfArrayOfObjectsWithAsterisk/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") | ||
; |
3 changes: 3 additions & 0 deletions
3
...rg/metafacture/metafix/integration/method/fromJson/toJson/replace_allSimple/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,3 @@ | ||
{ | ||
"key" : "b__ard" | ||
} |
3 changes: 3 additions & 0 deletions
3
...s/org/metafacture/metafix/integration/method/fromJson/toJson/replace_allSimple/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,3 @@ | ||
{ | ||
"key" : "board" | ||
} |
1 change: 1 addition & 0 deletions
1
...ces/org/metafacture/metafix/integration/method/fromJson/toJson/replace_allSimple/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 @@ | ||
replace_all("key", "o", "__") |
8 changes: 8 additions & 0 deletions
8
...es/org/metafacture/metafix/integration/method/fromJson/toJson/replace_allSimple/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
...metafacture/metafix/integration/method/fromJson/toJson/reverseArrayOfStrings/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 #121 |
3 changes: 3 additions & 0 deletions
3
...etafacture/metafix/integration/method/fromJson/toJson/reverseArrayOfStrings/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,3 @@ | ||
{ | ||
"animals" : [ "zebra", "cat", "dog" ] | ||
} |
3 changes: 3 additions & 0 deletions
3
...g/metafacture/metafix/integration/method/fromJson/toJson/reverseArrayOfStrings/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,3 @@ | ||
{ | ||
"animals" : [ "dog", "cat", "zebra" ] | ||
} |
1 change: 1 addition & 0 deletions
1
...org/metafacture/metafix/integration/method/fromJson/toJson/reverseArrayOfStrings/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 @@ | ||
reverse("animals[]") |
8 changes: 8 additions & 0 deletions
8
...rg/metafacture/metafix/integration/method/fromJson/toJson/reverseArrayOfStrings/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") | ||
; |
7 changes: 7 additions & 0 deletions
7
...g/metafacture/metafix/integration/method/fromJson/toJson/reverseSimpleField/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,7 @@ | ||
{ | ||
"animal" : "ynnub", | ||
"animal_2" : { | ||
"name" : "bird", | ||
"type" : "TSET" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
.../org/metafacture/metafix/integration/method/fromJson/toJson/reverseSimpleField/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,7 @@ | ||
{ | ||
"animal": "bunny", | ||
"animal_2": { | ||
"name": "bird", | ||
"type": "TEST" | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...es/org/metafacture/metafix/integration/method/fromJson/toJson/reverseSimpleField/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,2 @@ | ||
reverse("animal") | ||
reverse("animal_2.test") |
8 changes: 8 additions & 0 deletions
8
...s/org/metafacture/metafix/integration/method/fromJson/toJson/reverseSimpleField/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
...e/metafix/integration/method/fromJson/toJson/reverseSubfieldInArrayOfObjects/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 #121 |
12 changes: 12 additions & 0 deletions
12
.../metafix/integration/method/fromJson/toJson/reverseSubfieldInArrayOfObjects/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": "1_eulav", | ||
"test": "test_1" | ||
},{ | ||
"key": "2_eulav", | ||
"test": "test_2" | ||
},{ | ||
"key": "3_eulav", | ||
"test": "test_3" | ||
}] | ||
} |
12 changes: 12 additions & 0 deletions
12
...ure/metafix/integration/method/fromJson/toJson/reverseSubfieldInArrayOfObjects/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,12 @@ | ||
{ | ||
"test": [{ | ||
"key": "value_1", | ||
"test": "test_1" | ||
},{ | ||
"key": "value_2", | ||
"test": "test_2" | ||
},{ | ||
"key": "value_3", | ||
"test": "test_3" | ||
}] | ||
} |
1 change: 1 addition & 0 deletions
1
...cture/metafix/integration/method/fromJson/toJson/reverseSubfieldInArrayOfObjects/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 @@ | ||
reverse("test[].*.key") |
8 changes: 8 additions & 0 deletions
8
...ture/metafix/integration/method/fromJson/toJson/reverseSubfieldInArrayOfObjects/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
...ure/metafix/integration/method/fromJson/toJson/reverseValuesInArrayOfStrings/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 #121 |
3 changes: 3 additions & 0 deletions
3
...re/metafix/integration/method/fromJson/toJson/reverseValuesInArrayOfStrings/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,3 @@ | ||
{ | ||
"animals" : [ "god", "tac", "arbez" ] | ||
} |
3 changes: 3 additions & 0 deletions
3
...cture/metafix/integration/method/fromJson/toJson/reverseValuesInArrayOfStrings/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,3 @@ | ||
{ | ||
"animals": [ "dog", "cat", "zebra" ] | ||
} |
1 change: 1 addition & 0 deletions
1
...facture/metafix/integration/method/fromJson/toJson/reverseValuesInArrayOfStrings/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 @@ | ||
reverse("animals[].*") |
8 changes: 8 additions & 0 deletions
8
...acture/metafix/integration/method/fromJson/toJson/reverseValuesInArrayOfStrings/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") | ||
; |
5 changes: 5 additions & 0 deletions
5
...rg/metafacture/metafix/integration/method/fromJson/toJson/split_fieldSimple/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,5 @@ | ||
{ | ||
"tools" : "magic", | ||
"tools" : "arms", | ||
"tools" : "shapeShifting" | ||
} |
3 changes: 3 additions & 0 deletions
3
...s/org/metafacture/metafix/integration/method/fromJson/toJson/split_fieldSimple/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,3 @@ | ||
{ | ||
"tools" : "magic--arms--shapeShifting" | ||
} |
1 change: 1 addition & 0 deletions
1
...ces/org/metafacture/metafix/integration/method/fromJson/toJson/split_fieldSimple/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 @@ | ||
split_field("tools", "--") |
8 changes: 8 additions & 0 deletions
8
...es/org/metafacture/metafix/integration/method/fromJson/toJson/split_fieldSimple/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
...ation/method/fromJson/toJson/split_fieldSubfieldInArrayOfObjectsWithAsterisk/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 #121 |
15 changes: 15 additions & 0 deletions
15
...tion/method/fromJson/toJson/split_fieldSubfieldInArrayOfObjectsWithAsterisk/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,15 @@ | ||
{ | ||
"adventureDuo" : [ { | ||
"name" : "Jake", | ||
"animal" : "dog", | ||
"tools" : "magic", | ||
"tools" : "arms", | ||
"tools" : "shapeShifting" | ||
}, { | ||
"name" : "Finn", | ||
"animal" : "human", | ||
"tools" : "sword", | ||
"tools" : "anotherSword", | ||
"tools" : "arm" | ||
} ] | ||
} |
11 changes: 11 additions & 0 deletions
11
...gration/method/fromJson/toJson/split_fieldSubfieldInArrayOfObjectsWithAsterisk/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,11 @@ | ||
{ | ||
"adventureDuo": [ { | ||
"name" : "Jake", | ||
"animal" : "dog", | ||
"tools" : "magic--arms--shapeShifting" | ||
}, { | ||
"name" : "Finn", | ||
"animal" : "human", | ||
"tools" : "sword--anotherSword--arm" | ||
} ] | ||
} |
1 change: 1 addition & 0 deletions
1
...tegration/method/fromJson/toJson/split_fieldSubfieldInArrayOfObjectsWithAsterisk/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 @@ | ||
split_field("adventureDuo[].*.tools", "--") |
8 changes: 8 additions & 0 deletions
8
...egration/method/fromJson/toJson/split_fieldSubfieldInArrayOfObjectsWithAsterisk/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") | ||
; |
7 changes: 7 additions & 0 deletions
7
...ture/metafix/integration/method/fromJson/toJson/split_fieldSubfieldInObject/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,7 @@ | ||
{ | ||
"people" : { | ||
"investigators" : "Justus", | ||
"investigators" : "Peter", | ||
"investigators" : "Bob" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...facture/metafix/integration/method/fromJson/toJson/split_fieldSubfieldInObject/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,5 @@ | ||
{ | ||
"people" : { | ||
"investigators" : "Justus?Peter?Bob" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...tafacture/metafix/integration/method/fromJson/toJson/split_fieldSubfieldInObject/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 @@ | ||
split_field("people.investigators","\\?") |
8 changes: 8 additions & 0 deletions
8
...afacture/metafix/integration/method/fromJson/toJson/split_fieldSubfieldInObject/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") | ||
; |
2 changes: 1 addition & 1 deletion
2
...tafix/integration/record/fromJson/toJson/add_fieldAsteriskIntoArrayOfObjects/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 |
---|---|---|
@@ -1 +1 @@ | ||
See issue #156 | ||
See issue #156 and #121 |
16 changes: 16 additions & 0 deletions
16
...afacture/metafix/integration/record/fromJson/toJson/copy_fieldArrayOfObject/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,16 @@ | ||
{ | ||
"test" : [ { | ||
"key" : "value_1" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3" | ||
} ], | ||
"test_2" : [ { | ||
"key" : "value_1" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3" | ||
} ] | ||
} |
9 changes: 9 additions & 0 deletions
9
...metafacture/metafix/integration/record/fromJson/toJson/copy_fieldArrayOfObject/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
...g/metafacture/metafix/integration/record/fromJson/toJson/copy_fieldArrayOfObject/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[]", "test_2[]") |
8 changes: 8 additions & 0 deletions
8
.../metafacture/metafix/integration/record/fromJson/toJson/copy_fieldArrayOfObject/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") | ||
; |
18 changes: 18 additions & 0 deletions
18
.../integration/record/fromJson/toJson/copy_fieldArrayOfObjectAsRepeatedObject/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,18 @@ | ||
{ | ||
"test" : [ { | ||
"key" : "value_1" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3" | ||
} ], | ||
"repeatedTest" : { | ||
"key" : "value_1" | ||
}, | ||
"repeatedTest" : { | ||
"key" : "value_2" | ||
}, | ||
"repeatedTest" : { | ||
"key" : "value_3" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...fix/integration/record/fromJson/toJson/copy_fieldArrayOfObjectAsRepeatedObject/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
...tafix/integration/record/fromJson/toJson/copy_fieldArrayOfObjectAsRepeatedObject/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[]", "repeatedTest") |
Oops, something went wrong.