Created
September 9, 2009 06:06
-
-
Save eungju/183509 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
def has_branch(tree): | |
return False | |
class DepthTest(unittest.TestCase): | |
#I guess, testing existence of branches might be useful to calculate the depth of tree. | |
def test_has_branch(self): | |
tree = [] | |
self.assertFalse(has_branch(tree)) | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment