Sha256: 3e5947c9b8cd3be37f52f32752c4f70b9817bd510b5660e63aae7599c2afd73a

Contents?: true

Size: 1.06 KB

Versions: 141

Compression:

Stored size: 1.06 KB

Contents

import org.scalatest.{Matchers, FunSuite}

/** @version 1.1.0 */
class DifferenceOfSquaresTest extends FunSuite with Matchers {

  test("square of sum 1") {
    DifferenceOfSquares.squareOfSum(1) should be (1)
  }

  test("square of sum 5") {
    pending
    DifferenceOfSquares.squareOfSum(5) should be (225)
  }

  test("square of sum 100") {
    pending
    DifferenceOfSquares.squareOfSum(100) should be (25502500)
  }

  test("sum of squares 1") {
    pending
    DifferenceOfSquares.sumOfSquares(1) should be (1)
  }

  test("sum of squares 5") {
    pending
    DifferenceOfSquares.sumOfSquares(5) should be (55)
  }

  test("sum of squares 100") {
    pending
    DifferenceOfSquares.sumOfSquares(100) should be (338350)
  }

  test("difference of squares 1") {
    pending
    DifferenceOfSquares.differenceOfSquares(1) should be (0)
  }

  test("difference of squares 5") {
    pending
    DifferenceOfSquares.differenceOfSquares(5) should be (170)
  }

  test("difference of squares 100") {
    pending
    DifferenceOfSquares.differenceOfSquares(100) should be (25164150)
  }
}

Version data entries

141 entries across 141 versions & 1 rubygems

Version Path
trackler-2.2.1.106 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.105 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.104 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.103 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.102 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.101 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.100 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.99 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.98 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.97 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.96 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.95 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.94 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.93 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.92 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.91 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.90 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.89 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.88 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala
trackler-2.2.1.87 tracks/scala/exercises/difference-of-squares/src/test/scala/DifferenceOfSquaresTest.scala