X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fnotify%2FListNotificationTest.kt;fp=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fnotify%2FListNotificationTest.kt;h=0c815160d46f3d3bb8fc3c2355c943aeb9468052;hp=1aa554ca2ed26559899b41653c00f700a692b3a4;hb=f22c29a66b399d50e0575f7a0ba71e6375caebf3;hpb=57beeb2a70c1c0f60c6a22d73e68815982e20d6d diff --git a/src/test/kotlin/net/pterodactylus/sone/notify/ListNotificationTest.kt b/src/test/kotlin/net/pterodactylus/sone/notify/ListNotificationTest.kt index 1aa554c..0c81516 100644 --- a/src/test/kotlin/net/pterodactylus/sone/notify/ListNotificationTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/notify/ListNotificationTest.kt @@ -37,6 +37,12 @@ class ListNotificationTest { } @Test + fun `list notification deduplicates set elements`() { + listNotification.setElements(listOf("a", "b", "a")) + assertThat(listNotification.elements, contains("a", "b")) + } + + @Test fun `list notification retains added elements`() { listNotification.add("a") listNotification.add("b")