Sha256: 238f8676d7bc015543a7a9cacd9486e880a6bcdf5096a1959a0d37de9dd1c873

Contents?: true

Size: 1.16 KB

Versions: 126

Compression:

Stored size: 1.16 KB

Contents

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

class SpaceAgeTest {

    @Test
    fun ageOnEarth() {
        val age = SpaceAge(1000000000)

        assertEquals(31.69, age.onEarth())
    }

    @Ignore
    @Test
    fun ageOnMercury() {
        val age = SpaceAge(2134835688)

        assertEquals(280.88, age.onMercury())
    }

    @Ignore
    @Test
    fun ageOnVenus() {
        val age = SpaceAge(189839836)

        assertEquals(9.78, age.onVenus())
    }

    @Ignore
    @Test
    fun ageOnMars() {
        val age = SpaceAge(2329871239L)

        assertEquals(39.25, age.onMars())
    }

    @Ignore
    @Test
    fun ageOnJupiter() {
        val age = SpaceAge(901876382)

        assertEquals(2.41, age.onJupiter())
    }

    @Ignore
    @Test
    fun ageOnSaturn() {
        val age = SpaceAge(3000000000L)

        assertEquals(3.23, age.onSaturn())
    }

    @Ignore
    @Test
    fun ageOnUranus() {
        val age = SpaceAge(3210123456L)

        assertEquals(1.21, age.onUranus())
    }

    @Ignore
    @Test
    fun ageOnNeptune() {
        val age = SpaceAge(8210123456L)

        assertEquals(1.58, age.onNeptune())
    }

}

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.97 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.96 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.95 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.94 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.93 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.92 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.91 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.90 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.89 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.88 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.87 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.86 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.85 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.84 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.83 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.82 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.81 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.80 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt
trackler-2.2.1.79 tracks/kotlin/exercises/space-age/src/test/kotlin/SpaceAgeTest.kt