mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-24 03:47:57 +01:00
Cover Fingerprint
This commit is contained in:
parent
bdff2c5053
commit
34e5a96fce
1 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue