MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / pytests

Function pytests

data_structures/linked_list/skip_list.py:408–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

406
407
408def pytests():
409 for _ in range(100):
410 # Repeat test 100 times due to the probabilistic nature of skip list
411 # random values == random bugs
412 test_insert()
413 test_insert_overrides_existing_value()
414
415 test_searching_empty_list_returns_none()
416 test_search()
417
418 test_deleting_item_from_empty_list_do_nothing()
419 test_deleted_items_are_not_founded_by_find_method()
420 test_delete_removes_only_given_key()
421 test_delete_doesnt_leave_dead_nodes()
422
423 test_iter_always_yields_sorted_values()
424
425
426def main():

Callers

nothing calls this directly

Tested by

no test coverage detected