🐛 Fix deduplication
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / notify / ListNotificationTest.kt
index 1aa554c..0c81516 100644 (file)
@@ -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")