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.2 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.8.1 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.7.0 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.44 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.43 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.42 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.41 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.40 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.39 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.38 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.37 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.36 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.35 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.34 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.33 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.32 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.31 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.30 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.29 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala
trackler-2.0.6.28 tracks/scala/exercises/difference-of-squares/src/test/scala/SquaresTest.scala