Revised constraints and algorithm. Added comment denoting key/value for each dictionary in the code section.

This commit is contained in:
Donne Martin
2015-08-04 08:09:16 -04:00
parent 91dc014573
commit 9dc4116256
6 changed files with 349 additions and 16 deletions

View File

@@ -0,0 +1,19 @@
from nose.tools import assert_equal
class TestFoo(object):
def test_foo(self):
assert_equal(foo(None), None)
assert_equal(foo(0), 0)
assert_equal(foo('bar'), 'bar')
print('Success: test_foo')
def main():
test = TestFoo()
test.test_foo()
if __name__ == '__main__':
main()