There was an error while loading. Please reload this page.
1 parent c5e7c78 commit a47679aCopy full SHA for a47679a
1 file changed
ciphers/a1z26.py
@@ -13,7 +13,15 @@ def encode(plain: str) -> list[int]:
13
"""
14
>>> encode("myname")
15
[13, 25, 14, 1, 13, 5]
16
- >>> encode("ABCD")
+ >>> encode("abCd")
17
+ Traceback (most recent call last):
18
+ ...
19
+ ValueError: plain must contain only lowercase letters (a-z)
20
+ >>> encode("n0w")
21
22
23
24
+ >>> encode("later!")
25
Traceback (most recent call last):
26
...
27
ValueError: plain must contain only lowercase letters (a-z)
0 commit comments