12 lines
217 B
Kotlin
12 lines
217 B
Kotlin
|
package io.github.kotlin.fibonacci
|
||
|
|
||
|
import kotlin.test.Test
|
||
|
import kotlin.test.assertEquals
|
||
|
|
||
|
class IosFibiTest {
|
||
|
|
||
|
@Test
|
||
|
fun `test 3rd element`() {
|
||
|
assertEquals(7, generateFibi().take(3).last())
|
||
|
}
|
||
|
}
|