Skip to content

Commit ae3b9f7

Browse files
authored
Merge pull request #103 from RepNazar/main
More complicated test case for BST depth() method test
2 parents be9d00a + a2eb69a commit ae3b9f7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

2-0-data-structures-and-algorithms/2-2-6-binary-search-tree/src/test/java/com/bobocode/cs/BinarySearchTreeTest.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,19 @@ public static Stream<Arguments> depthArguments() {
260260
* .........\
261261
* ..........5
262262
*/
263-
arguments(new Integer[]{1, 2, 3, 4, 5}, 4));
263+
arguments(new Integer[]{1, 2, 3, 4, 5}, 4),
264+
/*
265+
* .........6
266+
* ....../.....\
267+
* .....2.......7
268+
* .../...\......\
269+
* ..1.....5......8
270+
* ......./........\
271+
* ......4..........9
272+
* ...../.............
273+
* ....3...............
274+
*/
275+
arguments(new Integer[]{6, 2, 7, 1, 5, 8, 4, 9, 3}, 4));
264276
}
265277

266278

0 commit comments

Comments
 (0)