Sha256: 6fd182060edf434fb6da8982f254199bf2928095081b716eba55f173291c8c04

Contents?: true

Size: 543 Bytes

Versions: 125

Compression:

Stored size: 543 Bytes

Contents

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

class LeapTest {

    @Test
    fun yearNotDivisibleBy4() {
        assertFalse(Year(2015).isLeap)
    }

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

    @Ignore
    @Test
    fun yearDivisibleBy100NotDivisibleBy400() {
        assertFalse(Year(2100).isLeap)
    }

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

}

Version data entries

125 entries across 125 versions & 1 rubygems

Version Path
trackler-2.2.1.58 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.57 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.56 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.55 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt
trackler-2.2.1.54 tracks/kotlin/exercises/leap/src/test/kotlin/LeapTest.kt