Skip to content

Commit 4a2b9ff

Browse files
committed
Add integration test for #265
1 parent 08d992e commit 4a2b9ff

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name" : "RVK (Regensburger Verbundklassifikation)",
3+
"id" : "https://d-nb.info/gnd/4449787-8"
4+
}
5+
{
6+
"name" : "ZDB-Systematik",
7+
"id" : "http://bartoc.org/en/node/18915"
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "rvk"
3+
}
4+
{
5+
"name": "zdbs"
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rvk RVK (Regensburger Verbundklassifikation) https://d-nb.info/gnd/4449787-8
2+
udc UDC (Universal Decimal Classification) https://d-nb.info/gnd/4114037-0
3+
zdbs ZDB-Systematik http://bartoc.org/en/node/18915
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
put_filemap("./mapfile.tsv", "idLookup", sep_char:"\t",key_column:"1",value_column:"2",expected_columns:"3")
2+
put_filemap("./mapfile.tsv", "nameLookup", sep_char:"\t",expected_columns:"-1")
3+
4+
lookup("name", "nameLookup")
5+
copy_field("name","id")
6+
lookup("id", "idLookup")
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)