Skip to content

Commit

Permalink
Add integration test for #265
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Nov 18, 2022
1 parent 08d992e commit 4a2b9ff
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name" : "RVK (Regensburger Verbundklassifikation)",
"id" : "https://d-nb.info/gnd/4449787-8"
}
{
"name" : "ZDB-Systematik",
"id" : "http://bartoc.org/en/node/18915"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "rvk"
}
{
"name": "zdbs"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rvk RVK (Regensburger Verbundklassifikation) https://d-nb.info/gnd/4449787-8
udc UDC (Universal Decimal Classification) https://d-nb.info/gnd/4114037-0
zdbs ZDB-Systematik http://bartoc.org/en/node/18915
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
put_filemap("./mapfile.tsv", "idLookup", sep_char:"\t",key_column:"1",value_column:"2",expected_columns:"3")
put_filemap("./mapfile.tsv", "nameLookup", sep_char:"\t",expected_columns:"-1")

lookup("name", "nameLookup")
copy_field("name","id")
lookup("id", "idLookup")
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")
;

0 comments on commit 4a2b9ff

Please sign in to comment.