diff --git a/wot-dijkstra/src/test/kotlin/org/pgpainless/wot/network/FingerprintTest.kt b/wot-dijkstra/src/test/kotlin/org/pgpainless/wot/network/FingerprintTest.kt index 3c017f87..65483400 100644 --- a/wot-dijkstra/src/test/kotlin/org/pgpainless/wot/network/FingerprintTest.kt +++ b/wot-dijkstra/src/test/kotlin/org/pgpainless/wot/network/FingerprintTest.kt @@ -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) + } } \ No newline at end of file