Skip to content

Commit 14c4ac8

Browse files
committed
Added test
1 parent 50e69be commit 14c4ac8

File tree

1 file changed

+5
-0
lines changed
  • src/test/kotlin/g1001_1100/s1022_sum_of_root_to_leaf_binary_numbers

1 file changed

+5
-0
lines changed

src/test/kotlin/g1001_1100/s1022_sum_of_root_to_leaf_binary_numbers/SolutionTest.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ internal class SolutionTest {
1717
val root: TreeNode? = TreeNode.create(listOf(0))
1818
assertThat(Solution().sumRootToLeaf(root), equalTo(0))
1919
}
20+
21+
@Test
22+
fun sumRootToLeaf3() {
23+
assertThat(Solution().sumRootToLeaf(null), equalTo(0))
24+
}
2025
}

0 commit comments

Comments
 (0)