Added reverse string challenge.

This commit is contained in:
Donne Martin
2015-07-03 19:57:09 -04:00
parent ac42b882bb
commit 73ec41e427
3 changed files with 249 additions and 43 deletions

View File

@@ -0,0 +1,18 @@
from nose.tools import assert_equal
class TestReverse(object):
def test_reverse(self):
assert_equal(list_of_chars(None), None)
assert_equal(list_of_chars(['']), [''])
assert_equal(list_of_chars(['f', 'o', 'o', ' ', 'b', 'a', 'r']),
['r', 'a', 'b', ' ', 'o', 'o', 'f'])
print('Success: test_reverse')
def main():
test = TestReverse()
test.test_reverse()
if __name__ == '__main__':
main()