Skip to content

Commit cce3e01

Browse files
committed
Add integration test for #231
1 parent 28efea5 commit cce3e01

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"test_1" : "9783894018109",
3+
"test_2" : "ungültig",
4+
"test_3" : "9783442151479",
5+
"test_4" : "3821808187"
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"test_1" : "978-3-89401-810-9",
3+
"test_2" : "978-3-89401-810-9",
4+
"test_3" : "3442151473",
5+
"test_4" : "978-3-8218-0818-5"
6+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
isbn("test_1",to:"clean")
2+
isbn("test_2",to:"clean",verify_check_digit:"true",error_string:"ungültig")
3+
isbn("test_3",to:"ISBN13",verify_check_digit:"true",error_string:"ungültig")
4+
isbn("test_4",to:"ISBN10",verify_check_digit:"true",error_string:"ungültig")
Lines changed: 8 additions & 0 deletions
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)