mirror of
https://github.com/oxen-io/session-android.git
synced 2025-03-31 09:42:13 +00:00
Add test to ensure we error on scan account id when trying to recover an account
This commit is contained in:
parent
71f04678cf
commit
4a2f6e7b4e
@ -96,6 +96,14 @@ class MnemonicCodecTest {
|
|||||||
|
|
||||||
assertEquals("0f2ccde528622876b8f16e14db97dafc", result)
|
assertEquals("0f2ccde528622876b8f16e14db97dafc", result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun `decodeMnemonicOrHexAsByteArray with account id throws`() {
|
||||||
|
assertThrows(InvalidWord::class.java) {
|
||||||
|
codec.decodeMnemonicOrHexAsByteArray("0582e1421da6f584a4795d30b654b4f25fed860afdf081075cb26a2b997e492f14").let(Hex::toStringCondensed)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `decodeMnemonicOrHexAsByteArray with bad hex`() {
|
fun `decodeMnemonicOrHexAsByteArray with bad hex`() {
|
||||||
// throws InvalidWord as 0f2ccde528622876b8f16e14db97dafcg is not a valid word on the english wordlist.
|
// throws InvalidWord as 0f2ccde528622876b8f16e14db97dafcg is not a valid word on the english wordlist.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user