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.159 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.158 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.157 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.156 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.155 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.154 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.153 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.152 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.151 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.150 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.149 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.148 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.147 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.146 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.145 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.144 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.143 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.142 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.141 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt
trackler-2.2.1.140 tracks/kotlin/exercises/difference-of-squares/src/test/kotlin/SquaresTest.kt