projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🐛 Fix deduplication
[Sone.git]
/
src
/
test
/
kotlin
/
net
/
pterodactylus
/
sone
/
notify
/
ListNotificationTest.kt
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
(file)
--- 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
}
@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")
fun `list notification retains added elements`() {
listNotification.add("a")
listNotification.add("b")