Skip to content

Commit 5dafbbe

Browse files
authored
Merge pull request #203 from metafacture/102-integrationtestsInMaster
102-integrationtestsInMaster
2 parents 5ca81b7 + 650d1b5 commit 5dafbbe

File tree

112 files changed

+960
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+960
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"animals" : [ "dog", "parrot", "shark" ]
3+
}
4+
{
5+
"animals" : "human",
6+
"animals" : [ "human" ]
7+
}
8+
{
9+
"animals" : "dog",
10+
"animals" : [ "dog" ]
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"animals" : [ "dog", "parrot", "shark" ]
3+
}
4+
{
5+
"animals" : "human"
6+
}
7+
{
8+
"animals" : "dog"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dog mammal
2+
cat mammal
3+
parrot bird
4+
shark fish
5+
dragon fictional animal
6+
unicorn fictional animal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
unless exists("animals[]")
2+
set_array("animals[]")
3+
copy_field("animals","animals[].$append")
4+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FLUX_DIR + "input.json"
2+
|open-file
3+
|as-records
4+
|decode-json
5+
|fix(FLUX_DIR + "test.fix")
6+
|encode-json(prettyPrinting="true")
7+
|write(FLUX_DIR + "output-metafix.json")
8+
;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"animals" : [ "mammal", "bird", "fish" ]
3+
}
4+
{
5+
"animals" : [ "human" ]
6+
}
7+
{
8+
"animals" : [ "mammal" ]
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"animals" : [ "dog", "parrot", "shark" ]
3+
}
4+
{
5+
"animals" : [ "human" ]
6+
}
7+
{
8+
"animals" : [ "dog" ]
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dog mammal
2+
cat mammal
3+
parrot bird
4+
shark fish
5+
dragon fictional animal
6+
unicorn fictional animal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lookup("animals[].*", "./mapfile.tsv", "sep_char":"\t")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FLUX_DIR + "input.json"
2+
|open-file
3+
|as-records
4+
|decode-json
5+
|fix(FLUX_DIR + "test.fix")
6+
|encode-json(prettyPrinting="true")
7+
|write(FLUX_DIR + "output-metafix.json")
8+
;

0 commit comments

Comments
 (0)