26 lines
430 B
Python
26 lines
430 B
Python
from solution import compute
|
|
|
|
|
|
def test_returns_five_values():
|
|
assert len(compute()) == 5
|
|
|
|
|
|
def test_first_is_addition():
|
|
assert compute()[0] == 12
|
|
|
|
|
|
def test_second_is_subtraction():
|
|
assert compute()[1] == 75
|
|
|
|
|
|
def test_third_is_multiplication():
|
|
assert compute()[2] == 48
|
|
|
|
|
|
def test_fourth_is_string_concat():
|
|
assert compute()[3] == "Hello World"
|
|
|
|
|
|
def test_fifth_is_power():
|
|
assert compute()[4] == 1024
|