Replace forEach() on range with repeat()
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Feb 2019 22:50:21 +0000 (23:50 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Feb 2019 22:50:21 +0000 (23:50 +0100)
src/test/kotlin/net/pterodactylus/sone/template/ReplyGroupFilterTest.kt

index 4614454..f1ee884 100644 (file)
@@ -26,7 +26,7 @@ class ReplyGroupFilterTest {
 
        @Before
        fun setupReplies() {
-               (0..4).forEach {
+               repeat(5) {
                        sones += mock<Sone>()
                }
                (0..7).forEach {