Sha256: 322fdb3f0dfabf18c322c94dcfbf54efc92dc51f2d82327eeabe76e289681854

Contents?: true

Size: 1.01 KB

Versions: 307

Compression:

Stored size: 1.01 KB

Contents

import org.junit.Test
import org.junit.Ignore
import kotlin.test.assertEquals

class SeriesTest {


    @Test
    fun slicesOfOne() {
        assertEquals(listOf<List<Int>>(), Series.slices(1, ""))
        assertEquals(
                listOf(listOf(0), listOf(1), listOf(2), listOf(3), listOf(4)),
                Series.slices(1, "01234")
        )
    }

    @Ignore
    @Test
    fun slicesOfTwo() {
        assertEquals(listOf<List<Int>>(), Series.slices(2, ""))
        assertEquals(listOf(listOf(0, 1)), Series.slices(2, "01"))
        assertEquals(
                listOf(listOf(0, 1), listOf(1, 2), listOf(2, 3), listOf(3, 4)),
                Series.slices(2, "01234")
        )
    }

    @Ignore
    @Test
    fun slicesOfThree() {
        assertEquals(listOf<List<Int>>(), Series.slices(3, ""))
        assertEquals(listOf(listOf(0, 1, 2)), Series.slices(3, "012"))
        assertEquals(
                listOf(listOf(0, 1, 2), listOf(1, 2, 3), listOf(2, 3, 4)),
                Series.slices(3, "01234")
        )
    }
}

Version data entries

307 entries across 307 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.179 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.178 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.177 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.176 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.175 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.174 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.173 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.172 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.171 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.170 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.169 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.167 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.166 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.165 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.164 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.163 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.162 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.161 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt
trackler-2.2.1.160 tracks/kotlin/exercises/series/src/test/kotlin/SeriesTest.kt