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.0.8.44 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.43 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.42 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.41 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.40 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.39 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.38 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.37 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.36 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.35 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.34 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.33 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.32 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.31 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.30 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.29 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.28 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.27 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.26 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala
trackler-2.0.8.24 tracks/scala/exercises/perfect-numbers/src/test/scala/PerfectNumbersTest.scala