From c555609f164eb5245eb1cceb3fe22ec1d258ec5d Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 3 May 2022 01:48:16 +0530 Subject: Misc cleanups (#1891) --- .../test/java/dev/msfjarvis/aps/util/crypto/GpgIdentifierTest.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/src/test') 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 } -- cgit v1.2.3