Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Add and adjust integration test for lookup #211

Merged
merged 1 commit into from
Apr 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"animals" : [ "mammal", "bird", "fish" ]
}
{
"animals" : [ "bird", "fish" ]
}
{
"animals" : [ "mammal" ]
}
{
"animals" : [ "mammal", "fish" ]
}
{
"animals" : [ ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"animals" : [ "dog", "parrot", "shark" ]
}
{
"animals" : [ "human", "parrot", "shark" ]
}
{
"animals" : [ "dog" ]
}
{
"animals" : [ "dog", "human", "shark" ]
}
{
"animals" : [ "human" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dog mammal
cat mammal
parrot bird
shark fish
dragon fictional animal
unicorn fictional animal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lookup("animals[].*", "./mapfile.tsv", "sep_char":"\t", delete:"true")
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
Expand Up @@ -2,8 +2,14 @@
"animals" : [ "mammal", "bird", "fish" ]
}
{
"animals" : [ "human" ]
"animals" : [ "human", "bird", "fish" ]
}
{
"animals" : [ "mammal" ]
}
{
"animals" : [ "mammal", "human", "fish" ]
}
{
"animals" : [ "human" ]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
"animals" : [ "dog", "parrot", "shark" ]
}
{
"animals" : [ "human" ]
"animals" : [ "human", "parrot", "shark" ]
}
{
"animals" : [ "dog" ]
}
{
"animals" : [ "dog", "human", "shark" ]
}
{
"animals" : [ "human" ]
}