diff options
Diffstat (limited to 'util/src/test/kotlin/PaytoTest.kt')
-rw-r--r-- | util/src/test/kotlin/PaytoTest.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/src/test/kotlin/PaytoTest.kt b/util/src/test/kotlin/PaytoTest.kt index 5c1f50a9..635966d6 100644 --- a/util/src/test/kotlin/PaytoTest.kt +++ b/util/src/test/kotlin/PaytoTest.kt @@ -8,6 +8,12 @@ class PaytoTest { @Test fun wrongCases() { try { + parsePayto("payto://iban/IBAN/BIC") + } catch (e: InvalidPaytoError) { + println(e) + println("must give IBAN _and_ BIC") + } + try { parsePayto("http://iban/BIC123/IBAN123?receiver-name=The%20Name") } catch (e: InvalidPaytoError) { println(e) |