mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-09 19:08:02 +00:00
Fix #13, PEP8-ify notebooks.
This commit is contained in:
@@ -2,17 +2,20 @@ 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'])
|
||||
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()
|
||||
Reference in New Issue
Block a user