Files
curriculum/1.solar-system/3.strings/01.the-message/testing/test_solution.py

17 lines
402 B
Python

from solution import info
def test_mission_control():
r = info("MISSION-CONTROL-7")
assert r == {"first": "M", "sixth": "O", "last": "7", "length": 17}
def test_andromeda():
r = info("andromeda")
assert r == {"first": "a", "sixth": "m", "last": "a", "length": 9}
def test_alphabet():
r = info("ABCDEFGH")
assert r == {"first": "A", "sixth": "F", "last": "H", "length": 8}