1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-24 11:57:59 +01:00

Cover Fingerprint

This commit is contained in:
Paul Schaub 2023-07-15 17:30:09 +02:00
parent bdff2c5053
commit 34e5a96fce
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -33,4 +33,14 @@ class FingerprintTest {
assert(finger1 != finger2)
assertFalse { finger1.equals("2222222222222222222222222222222222222222") }
}
@Test
fun `verify Fingerprints get sorted lexicographically`() {
val list = mutableListOf(Fingerprint("A"), Fingerprint("C"), Fingerprint("B"))
list.sort()
assertEquals(
listOf(Fingerprint("A"), Fingerprint("B"), Fingerprint("C")),
list)
}
}