Sha256: 8a59632ec7cbe76a9e55475a35d6860d6b4d06ab1d1ac8fe1f495541bce9d10a

Contents?: true

Size: 799 Bytes

Versions: 181

Compression:

Stored size: 799 Bytes

Contents

import org.junit.Test
import org.junit.Ignore
import kotlin.test.assertFalse
import kotlin.test.assertTrue

class LeapTest {


    @Test
    fun leapYear() {
        assertTrue(Year(1996).isLeap)
    }

    @Ignore
    @Test
    fun standardOddYear() {
        assertFalse(Year(1997).isLeap)
    }

    @Ignore
    @Test
    fun standardEvenYear() {
        assertFalse(Year(1998).isLeap)
    }

    @Ignore
    @Test
    fun standardNineteenthCentury() {
        assertFalse(Year(1900).isLeap)
    }

    @Ignore
    @Test
    fun standardEighteenthCentury() {
        assertFalse(Year(1800).isLeap)
    }

    @Ignore
    @Test
    fun leapTwentyFourthCentury() {
        assertTrue(Year(2400).isLeap)
    }

    @Ignore
    @Test
    fun leapY2K() {
        assertTrue(Year(2000).isLeap)
    }
}

Version data entries

181 entries across 181 versions & 1 rubygems

Version Path
trackler-2.2.1.52 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.51 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.50 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.49 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.48 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.47 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.46 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.45 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.44 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.43 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.42 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.41 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.40 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.39 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.38 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.37 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.36 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.35 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.34 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.33 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt