Sha256: eb5a73f0044dc7f53098fc2d11d647039fd2b9c32d49a6454982f658a1a5f62a
Contents?: true
Size: 614 Bytes
Versions: 41
Compression:
Stored size: 614 Bytes
Contents
import unittest import space_age suite "Space Age": test "age on Earth": check age("Earth", 1000000000) == 31.69 test "age on Mercury": check age("Mercury", 2134835688) == 280.88 test "age on Venus": check age("Venus", 189839836) == 9.78 test "age on Mars": check age("Mars", 2329871239) == 39.25 test "age on Jupiter": check age("Jupiter", 901876382) == 2.41 test "age on Saturn": check age("Saturn", 3000000000) == 3.23 test "age on Uranus": check age("Uranus", 3210123456) == 1.21 test "age on Neptune": check age("Neptune", 8210123456) == 1.58
Version data entries
41 entries across 41 versions & 1 rubygems
Version | Path |
---|---|
trackler-2.2.1.139 | tracks/nim/exercises/space-age/space_age_test.nim |