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.0.8.22 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.21 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.20 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.19 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.18 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.17 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.16 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.15 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.14 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.13 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.12 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.11 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.10 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.9 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.8 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.7 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.6 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.5 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.4 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.3 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala