Sha256: a8f4b4607448db16a4141d013478c1cf76534db77e769651df4340fabdc924f9

Contents?: true

Size: 1.06 KB

Versions: 126

Compression:

Stored size: 1.06 KB

Contents

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

class SquaresTest {

    @Test
    fun squareOfSum1() {
        assertEquals(1, Squares(1).squareOfSum())
    }

    @Ignore
    @Test
    fun squareOfSum5() {
        assertEquals(225, Squares(5).squareOfSum())
    }

    @Ignore
    @Test
    fun squareOfSum100() {
        assertEquals(25502500, Squares(100).squareOfSum())
    }

    @Ignore
    @Test
    fun sumOfSquares1() {
        assertEquals(1, Squares(1).sumOfSquares())
    }

    @Ignore
    @Test
    fun sumOfSquares5() {
        assertEquals(55, Squares(5).sumOfSquares())
    }

    @Ignore
    @Test
    fun sumOfSquares100() {
        assertEquals(338350, Squares(100).sumOfSquares())
    }

    @Ignore
    @Test
    fun differenceOfSquares1() {
        assertEquals(0, Squares(1).difference())
    }

    @Ignore
    @Test
    fun differenceOfSquares5() {
        assertEquals(170, Squares(5).difference())
    }

    @Ignore
    @Test
    fun differenceOfSquares100() {
        assertEquals(25164150, Squares(100).difference())
    }

}

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
trackler-2.2.1.58 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.57 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.56 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.55 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.54 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.53 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt