Something like h-index?
This commit is contained in:
@@ -310,3 +310,24 @@ def test_collect_complete_jump_paths_from_board(
|
||||
)
|
||||
def test_count_min_jumps_from_board(board: list[int], expected: int):
|
||||
assert stuff.count_min_jumps_from_board(board) == expected
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("citations", "expected"),
|
||||
[
|
||||
(
|
||||
[3, 0, 6, 1, 5],
|
||||
3,
|
||||
),
|
||||
(
|
||||
[1, 3, 1],
|
||||
1,
|
||||
),
|
||||
(
|
||||
[100],
|
||||
1,
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_h_index(citations: list[int], expected: int):
|
||||
assert stuff.h_index(citations) == expected
|
||||
|
||||
Reference in New Issue
Block a user