seed: curriculum content

This commit is contained in:
2026-05-07 14:32:44 +00:00
parent 9258534803
commit ec76f4f56b
100 changed files with 2846 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
from solution import mirror
def test_palindrome():
r = mirror("racecar")
assert r == {"original": "racecar", "reversed": "racecar", "palindrome": True}
def test_not_palindrome():
r = mirror("hello")
assert r == {"original": "hello", "reversed": "olleh", "palindrome": False}
def test_level():
r = mirror("level")
assert r["palindrome"] is True
def test_andromeda():
r = mirror("andromeda")
assert r["palindrome"] is False
assert r["reversed"] == "ademordna"
def test_noon():
r = mirror("noon")
assert r == {"original": "noon", "reversed": "noon", "palindrome": True}