This repository has been archived by the owner on Mar 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added another test for do list and changed names
- Loading branch information
Showing
10 changed files
with
109 additions
and
8 deletions.
There are no files selected for viewing
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 @@ | ||
set_array("test[]") | ||
set_array("test_2[]") | ||
|
||
# This breaks: | ||
copy_field("creator[].*.name|CREATOR[].*.name", "test[].$append") | ||
|
||
|
||
do list(path:"creator[]|CREATOR[]", "var":"$i") | ||
|
||
# This works | ||
copy_field("$i.name", "test_2[].$append") | ||
|
||
# This does not: | ||
copy_field("$i.name", "$i.test") | ||
end |
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 + "pipe_test.json" | ||
|open-file | ||
| as-records | ||
| decode-json | ||
|fix( FLUX_DIR + "pipe.fix" ) | ||
|encode-json(prettyPrinting="true") | ||
| write(FLUX_DIR + "pipe_result.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,58 @@ | ||
{ | ||
"creator": [ | ||
{ | ||
"name": "Enno Paul", | ||
"test": "Enno Paul" | ||
}, | ||
{ | ||
"name": "Anna Hieronymus", | ||
"test": "Anna Hieronymus" | ||
}, | ||
{ | ||
"name": "Pia Lühn", | ||
"test": "Pia Lühn" | ||
}, | ||
{ | ||
"name": "Schule und Bewegung Universität Oldenburg", | ||
"test": "Schule und Bewegung Universität Oldenburg" | ||
} | ||
], | ||
"CREATOR": [ | ||
{ | ||
"name": "Enno Paul", | ||
"test": "Enno Paul" | ||
}, | ||
{ | ||
"name": "Anna Hieronymus", | ||
"test": "Anna Hieronymus" | ||
}, | ||
{ | ||
"name": "Pia Lühn", | ||
"test": "Pia Lühn" | ||
}, | ||
{ | ||
"name": "Schule und Bewegung Universität Oldenburg", | ||
"test": "Schule und Bewegung Universität Oldenburg" | ||
} | ||
], | ||
"test": [ | ||
"Enno Paul", | ||
"Anna Hieronymus", | ||
"Pia Lühn", | ||
"Schule und Bewegung Universität Oldenburg", | ||
"Enno Paul", | ||
"Anna Hieronymus", | ||
"Pia Lühn", | ||
"Schule und Bewegung Universität Oldenburg" | ||
], | ||
"test_2": [ | ||
"Enno Paul", | ||
"Anna Hieronymus", | ||
"Pia Lühn", | ||
"Schule und Bewegung Universität Oldenburg", | ||
"Enno Paul", | ||
"Anna Hieronymus", | ||
"Pia Lühn", | ||
"Schule und Bewegung Universität Oldenburg" | ||
] | ||
} |
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,20 @@ | ||
{ | ||
"creator" : [ { | ||
"name" : "Enno Paul" | ||
}, { | ||
"name" : "Anna Hieronymus" | ||
}, { | ||
"name" : "Pia Lühn" | ||
}, { | ||
"name" : "Schule und Bewegung Universität Oldenburg" | ||
} ], | ||
"CREATOR" : [ { | ||
"name" : "Enno Paul" | ||
}, { | ||
"name" : "Anna Hieronymus" | ||
}, { | ||
"name" : "Pia Lühn" | ||
}, { | ||
"name" : "Schule und Bewegung Universität Oldenburg" | ||
} ] | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 + "wildcard_test.xml" | ||
|open-file | ||
|decode-xml | ||
|handle-generic-xml | ||
|fix( FLUX_DIR + "wildcard.fix" ) | ||
|encode-json(prettyPrinting="true") | ||
| write(FLUX_DIR + "wildcard_result.json") | ||
; |
File renamed without changes.
File renamed without changes.
File renamed without changes.