Sha256: f0d711bf335473a35aa4a888449788429e3be58b99eb7677378113e2be456d23

Contents?: true

Size: 1.54 KB

Versions: 82

Compression:

Stored size: 1.54 KB

Contents

import org.scalatest.{FlatSpec, Matchers}

class PerfectNumbersTest extends FlatSpec with Matchers {
  it should "handle deficient - 3" in {
    PerfectNumbers.classify(3) should be (NumberType.Deficient)
  }

  it should "handle deficient - 7" in {
    pending
    PerfectNumbers.classify(7) should be (NumberType.Deficient)
  }

  it should "handle deficient - 13" in {
    pending
    PerfectNumbers.classify(13) should be (NumberType.Deficient)
  }

  it should "handle deficient - 33550337" in {
    pending
    PerfectNumbers.classify(33550337) should be (NumberType.Deficient)
  }

  it should "handle perfect - 6" in {
    pending
    PerfectNumbers.classify(6) should be (NumberType.Perfect)
  }

  it should "handle perfect - 28" in {
    pending
    PerfectNumbers.classify(28) should be (NumberType.Perfect)
  }

  it should "handle perfect - 33550336" in {
    pending
    PerfectNumbers.classify(33550336) should be (NumberType.Perfect)
  }

  it should "handle perfect - 496" in {
    pending
    PerfectNumbers.classify(496) should be (NumberType.Perfect)
  }

  it should "handle abundant - 12" in {
    pending
    PerfectNumbers.classify(12) should be (NumberType.Abundant)
  }

  it should "handle abundant - 18" in {
    pending
    PerfectNumbers.classify(18) should be (NumberType.Abundant)
  }

  it should "handle abundant - 20" in {
    pending
    PerfectNumbers.classify(20) should be (NumberType.Abundant)
  }

  it should "handle abundant - 33550335" in {
    pending
    PerfectNumbers.classify(33550335) should be (NumberType.Abundant)
  }
}

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
trackler-2.1.0.28 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.27 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.26 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.25 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.24 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.23 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.22 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.21 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.20 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.19 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.18 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.17 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.16 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.15 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.14 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.13 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.12 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.11 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.10 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.1.0.9 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala