import org.scalatest.{Matchers, FunSuite}

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

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

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

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

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

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

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

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

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