Sha256: 812263de528545745a4df04d6e528c61bddaa4bf34e923a5d8abc086b711753e
Contents?: true
Size: 987 Bytes
Versions: 89
Compression:
Stored size: 987 Bytes
Contents
import org.junit.Test 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") ) } @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") ) } @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
89 entries across 89 versions & 1 rubygems