#9943 : improve coverage of average_mode.py

This commit is contained in:
Scarfinos 2024-10-30 09:55:48 +01:00
parent 66ab2a1f61
commit 23fac3c479

View File

@ -7,6 +7,8 @@ def mode(input_list: list) -> list[Any]:
The input list may contain any Datastructure or any Datatype. The input list may contain any Datastructure or any Datatype.
>>> mode([])
[]
>>> mode([2, 3, 4, 5, 3, 4, 2, 5, 2, 2, 4, 2, 2, 2]) >>> mode([2, 3, 4, 5, 3, 4, 2, 5, 2, 2, 4, 2, 2, 2])
[2] [2]
>>> mode([3, 4, 5, 3, 4, 2, 5, 2, 2, 4, 4, 2, 2, 2]) >>> mode([3, 4, 5, 3, 4, 2, 5, 2, 2, 4, 4, 2, 2, 2])