diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2021-05-02 11:07:42 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2021-05-02 11:33:21 +0530 |
commit | a57c0136192e00488beae3e2be094f2a358cff76 (patch) | |
tree | a19a4d442758d396e3ee58212d48a685e18f1088 /app/src/test | |
parent | 2fab258bc0308b788cfeaa9799537d3ffd6d149b (diff) |
app: update GpgIdentifier tests
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/test')
-rw-r--r-- | app/src/test/java/dev/msfjarvis/aps/util/crypto/GpgIdentifierTest.kt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/src/test/java/dev/msfjarvis/aps/util/crypto/GpgIdentifierTest.kt b/app/src/test/java/dev/msfjarvis/aps/util/crypto/GpgIdentifierTest.kt index 9c36afc1..9f27108c 100644 --- a/app/src/test/java/dev/msfjarvis/aps/util/crypto/GpgIdentifierTest.kt +++ b/app/src/test/java/dev/msfjarvis/aps/util/crypto/GpgIdentifierTest.kt @@ -5,7 +5,6 @@ package dev.msfjarvis.aps.util.crypto -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertNotNull import kotlin.test.assertTrue @@ -28,15 +27,14 @@ class GpgIdentifierTest { @Test fun `parses email as user id`() { - val identifier = GpgIdentifier.fromString("aps@msfjarvis.dev") + val identifier = GpgIdentifier.fromString("john.doe@example.org") assertNotNull(identifier) assertTrue { identifier is GpgIdentifier.UserId } } @Test - @Ignore("OpenKeychain can't yet handle these so we don't either") - fun `parses non-email user id`() { - val identifier = GpgIdentifier.fromString("john.doe") + fun `parses user@host without TLD`() { + val identifier = GpgIdentifier.fromString("john.doe@example") assertNotNull(identifier) assertTrue { identifier is GpgIdentifier.UserId } } |