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.98 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.97 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.96 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.95 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.94 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.93 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.92 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.91 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.90 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.89 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.88 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.87 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.86 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.85 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.84 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.83 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.82 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.81 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.80 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.79 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt