summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-05-03 01:48:16 +0530
committerGitHub <noreply@github.com>2022-05-02 20:18:16 +0000
commitc555609f164eb5245eb1cceb3fe22ec1d258ec5d (patch)
tree2a3dd02158fccfff2d92fe9c3ff433758a141076 /app/src
parent07a83a33b878791257d1aa2282e71c1d2f301254 (diff)
Misc cleanups (#1891)
Diffstat (limited to 'app/src')
-rw-r--r--app/src/test/java/dev/msfjarvis/aps/util/crypto/GpgIdentifierTest.kt8
1 files changed, 4 insertions, 4 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 9f27108c..8c3272ef 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
@@ -12,28 +12,28 @@ import kotlin.test.assertTrue
class GpgIdentifierTest {
@Test
- fun `parses hexadecimal key id without leading 0x`() {
+ fun parseHexKeyIdWithout0xPrefix() {
val identifier = GpgIdentifier.fromString("79E8208280490C77")
assertNotNull(identifier)
assertTrue { identifier is GpgIdentifier.KeyId }
}
@Test
- fun `parses hexadecimal key id`() {
+ fun parseHexKeyId() {
val identifier = GpgIdentifier.fromString("0x79E8208280490C77")
assertNotNull(identifier)
assertTrue { identifier is GpgIdentifier.KeyId }
}
@Test
- fun `parses email as user id`() {
+ fun parseValidEmail() {
val identifier = GpgIdentifier.fromString("john.doe@example.org")
assertNotNull(identifier)
assertTrue { identifier is GpgIdentifier.UserId }
}
@Test
- fun `parses user@host without TLD`() {
+ fun parseEmailWithoutTLD() {
val identifier = GpgIdentifier.fromString("john.doe@example")
assertNotNull(identifier)
assertTrue { identifier is GpgIdentifier.UserId }