projects
/
cipher-training.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3675c92
)
Added another test case
author
Neil Smith
<neil.git@njae.me.uk>
Mon, 10 Mar 2014 20:34:26 +0000
(16:34 -0400)
committer
Neil Smith
<neil.git@njae.me.uk>
Mon, 10 Mar 2014 20:34:26 +0000
(16:34 -0400)
cipher.py
patch
|
blob
|
history
diff --git
a/cipher.py
b/cipher.py
index 4ec333f2f68c1cbd511535904be9b805736d1b3d..a09c3438a64728e32bdc625bff8af847f18d2df7 100644
(file)
--- a/
cipher.py
+++ b/
cipher.py
@@
-170,6
+170,8
@@
def caesar_decipher(message, shift):
'abc'
>>> caesar_decipher('cd ez ab', 2)
'ab cx yz'
+ >>> caesar_decipher('Jgnnq Yqtnf!', 2)
+ 'Hello World!'
"""
return caesar_encipher(message, -shift)