Skip to content

Commit 313be6e

Browse files
Update function call
1 parent 05d797a commit 313be6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_invert_binary_tree.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ class TestSolution(TestCase):
1414
def test_1(self):
1515
exp = [4, 7, 2, 9, 6, 3, 1]
1616
t = create_binary_tree_from_list([4, 2, 7, 1, 3, 6, 9])
17-
assert create_bfs_list_from_binary_tree(Solution().invertTree(t)) == exp
17+
assert create_bfs_list_from_binary_tree(root=Solution().invertTree(t)) == exp
1818

1919
def test_2(self):
2020
exp = [2, 3, 1]
2121
t = create_binary_tree_from_list([2, 1, 3])
22-
assert create_bfs_list_from_binary_tree(Solution().invertTree(t)) == exp
22+
assert create_bfs_list_from_binary_tree(root=Solution().invertTree(t)) == exp
2323

2424
def test_3(self):
2525
exp = []
2626
t = create_binary_tree_from_list([])
27-
assert create_bfs_list_from_binary_tree(Solution().invertTree(t)) == exp
27+
assert create_bfs_list_from_binary_tree(root=Solution().invertTree(t)) == exp

0 commit comments

Comments
 (0)