Sha256: 20844042b267d921baddd822cb07442c8addc24c26709f3e77a8c06101ae4b7c

Contents?: true

Size: 863 Bytes

Versions: 64

Compression:

Stored size: 863 Bytes

Contents

import org.scalatest.{Matchers, FunSuite}

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

  test("age on Earth") {
    SpaceAge.onEarth(1000000000) should be (31.69)
  }

  test("age on Mercury") {
    pending
    SpaceAge.onMercury(2134835688) should be (280.88)
  }

  test("age on Venus") {
    pending
    SpaceAge.onVenus(189839836) should be (9.78)
  }

  test("age on Mars") {
    pending
    SpaceAge.onMars(2.329871239E9) should be (39.25)
  }

  test("age on Jupiter") {
    pending
    SpaceAge.onJupiter(901876382) should be (2.41)
  }

  test("age on Saturn") {
    pending
    SpaceAge.onSaturn(3.0E9) should be (3.23)
  }

  test("age on Uranus") {
    pending
    SpaceAge.onUranus(3.210123456E9) should be (1.21)
  }

  test("age on Neptune") {
    pending
    SpaceAge.onNeptune(8.210123456E9) should be (1.58)
  }
}

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.179 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.178 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.177 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.176 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.175 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.174 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.173 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.172 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.171 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.170 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.169 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.167 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.166 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.165 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.164 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.163 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.162 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.161 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala
trackler-2.2.1.160 tracks/scala/exercises/space-age/src/test/scala/SpaceAgeTest.scala