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