- Javascript
- Jest
- Babel
- Clone or download this repository onto your desktop
-
should correctly create a Person object with name, age relative to Earth, and life expectancy relative to Earth years:
- Input: Age: 20
- Output: Age: 20
-
should correctly convert the users Earth age to their age relative to Mercury.
- Input: 20 (/.24)
- Output: 83
-
should correctly convert the users Earth age to their age relative to Venus.
- Input: 20 (/.62)
- Output: 32
-
should correctly convert the users Earth age to their age relative to Mars.
- Input: 20 (/1.88)
- Output: 10
-
should correctly convert the users Earth age to their age relative to Jupiter.
- Input: 20 (/11.86)
- Output: 1
-
should correctly determine how many years the user has left to live on Earth
- Input: 20 years
- Output: 55
-
should correctly determine how many years the user has left to live on Mercury.
- Input: 20 years
- Output: 229
-
should correctly determine how many years the user has left to live on Venus.
- Input: 20 years
- Output: 88
-
should correctly determine how many years the user has left to live on Mars.
- Input: 20 years
- Output: 29
-
should correctly determine how many years the user has left to live on Jupiter.
- Input: 20 years
- Output: 5
-
should correctly determine how many years over life expectancy the inputted users age is in Earth Years.
- Input: 80 years
- Output: 5
-
should correctly determine how many years over life expectancy the inputted users age is in Mercury Years.
- Input: 80 years
- Output: 20
-
should correctly determine how many years over life expectancy the inputted users age is in Venus Years.
- Input: 80 years
- Output: 8
- should correctly determine how many years over life expectancy the inputted users age is in Venus Years.
- Input: 80 years
- Output: 2
- should correctly determine how many years over life expectancy the inputted users age is in Venus Years.
- Input: 100 years
- Output: 1
Copyright (c) 2021 Marcus Ferreira