You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnStream.of(Arguments.of(newint[] {1, 2, 3, 3, 4, 5}, 3, 4, "Count of elements less than existing key"), Arguments.of(newint[] {1, 2, 3, 3, 4, 5}, 4, 5, "Count of elements less than non-existing key"), Arguments.of(newint[] {1, 2, 2, 3}, 5, 4, "Count with all smaller elements"),
33
33
Arguments.of(newint[] {2, 3, 4, 5}, 1, 0, "Count with no smaller elements"), Arguments.of(newint[] {}, 1, 0, "Count in empty array"));
34
34
}
35
+
36
+
@ParameterizedTest(name = "Edge case {index}: {3}")
returnStream.of(Arguments.of(newint[] {1, 2, 3, 4, 5}, 0, 0, "Key less than all elements"), Arguments.of(newint[] {1, 2, 3, 4, 5}, 6, 5, "Key greater than all elements"), Arguments.of(newint[] {1}, 0, 0, "Single element greater than key"));
0 commit comments