mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-09 02:48:02 +00:00
Update tree check balance challenge (#120)
Use more specific exception types.
This commit is contained in:
@@ -4,7 +4,7 @@ from nose.tools import raises
|
||||
|
||||
class TestCheckBalance(object):
|
||||
|
||||
@raises(Exception)
|
||||
@raises(TypeError)
|
||||
def test_check_balance_empty(self):
|
||||
bst = BstBalance(None)
|
||||
bst.check_balance()
|
||||
|
||||
Reference in New Issue
Block a user