mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
20 lines
329 B
Python
20 lines
329 B
Python
import unittest
|
|
|
|
|
|
class TestFoo(unittest.TestCase):
|
|
|
|
def test_foo(self):
|
|
self.assertEqual(foo(None), None)
|
|
self.assertEqual(foo(0), 0)
|
|
self.assertEqual(foo('bar'), 'bar')
|
|
print('Success: test_foo')
|
|
|
|
|
|
def main():
|
|
test = TestFoo()
|
|
test.test_foo()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|