Files
curriculum/1.solar-system/2.first-light/06.the-translator/testing/test_solution.py

22 lines
335 B
Python

from solution import years_until
def test_int_input_25():
assert years_until(25) == 75
def test_int_input_7():
assert years_until(7) == 93
def test_int_input_60():
assert years_until(60) == 40
def test_string_input_converted():
assert years_until("25") == 75
def test_zero():
assert years_until(0) == 100