Sha256: 1b91f1ac49f3d844a51dafa340e116f1f0939bc3c0ab25bbbf8c558ddbd8f286

Contents?: true

Size: 1.28 KB

Versions: 142

Compression:

Stored size: 1.28 KB

Contents

import org.scalatest.{Matchers, FlatSpec}

class SquaresTest extends FlatSpec with Matchers {
  it should "calc square of sums to 5" in {
    val result = Squares.squareOfSums(5)
    result should equal (225)
  }

  it should "calc sum of squares to 5" in {
    pending
    val result = Squares.sumOfSquares(5)
    result should equal (55)
  }

  it should "calc difference of sums to 5" in {
    pending
    val result = Squares.difference(5)
    result should equal (170)
  }

  it should "calc square of sums to 10" in {
    pending
    val result = Squares.squareOfSums(10)
    result should equal (3025)
  }

  it should "calc sum of squares to 10" in {
    pending
    val result = Squares.sumOfSquares(10)
    result should equal (385)
  }

  it should "calc difference of sums to 10" in {
    pending
    val result = Squares.difference(10)
    result should equal (2640)
  }

  it should "calc square of sums to 100" in {
    pending
    val result = Squares.squareOfSums(100)
    result should equal (25502500)
  }

  it should "calc sum of squares to 100" in {
    pending
    val result = Squares.sumOfSquares(100)
    result should equal (338350)
  }

  it should "calc difference of sums to 100" in {
    pending
    val result = Squares.difference(100)
    result should equal (25164150)
  }
}

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
trackler-2.1.0.27 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.26 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.25 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.24 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.23 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.22 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.21 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.20 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.19 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.18 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.17 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.16 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.15 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.14 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.13 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.12 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.11 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.10 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.9 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.1.0.8 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala