tests.structure.collections_.test_sortedset

tests.structure.collections_.test_sortedset#

Unit tests for structure.collections.sortedset module.

Functions

b_generator()

Basic generator to assist with testing

test_sortedset_add_order()

Tests to make sure values added to set stay in insertion order

test_sortedset_basic_add()

Test adding value to an empty sorted set

test_sortedset_clear()

Test clearing all data in the sorted set

test_sortedset_comparsion()

Test the sorted set basic comparsions

test_sortedset_count()

Test using the sorted set's count method

test_sortedset_difference_generator()

Test the set difference implementation with a generator.

test_sortedset_difference_multiple_iterable()

Test the set difference implementation with a multiple iterables.

test_sortedset_difference_single_iterable()

Test the set difference implementation with a single iterable.

test_sortedset_difference_update_generator()

Test the set difference update implementation with a generator.

test_sortedset_difference_update_multiple_iterable()

Test the set difference update implementation with multiple iterables.

test_sortedset_difference_update_single_iterable()

Test the set difference update implementation with a single iterable.

test_sortedset_discard()

Test discarding values from a sorted set

test_sortedset_duplicated_add()

Test adding a value already contained in a sorted set

test_sortedset_get_list()

Test getting the sorted set's view

test_sortedset_get_view()

Test getting the sorted set's view

test_sortedset_hash()

Test using the sorted sets hash method

test_sortedset_index()

Test using the sorted set's index method

test_sortedset_init()

Ensure we can initalize a sorted set

test_sortedset_init_bad_type()

Ensure we can't initalize from a non-iterable object.

test_sortedset_init_generator()

Ensure we can initalize a sorted set from a generator and order is maintained.

test_sortedset_init_repeated()

Ensure that sorted set doesn't store repeated values when initalizing from an iterable

test_sortedset_init_sequence()

Ensure we can initalize a sorted set with a sequence of data and order is maintained.

test_sortedset_intersection_generator()

Test the set intersection implementation with a generator.

test_sortedset_intersection_multiple_iterable()

Test the set intersection implementation with multiple iterables.

test_sortedset_intersection_single_iterable()

Test the set intersection implementation with a single iterable.

test_sortedset_intersection_update_generator()

Test the set intersection update implementation with a generator.

test_sortedset_intersection_update_multiple_iterable()

Test the set intersection update implementation with multiple iterables.

test_sortedset_intersection_update_single_iterable()

Test the set intersection update implementation with a single iterable.

test_sortedset_iter()

Test iterating over the sorted set

test_sortedset_operator_difference()

Test using the operator for difference

test_sortedset_operator_difference_update()

Test using the operator for difference update

test_sortedset_operator_intersection()

Test using the operator for intersection

test_sortedset_operator_intersection_update()

Test using the operator for intersection update

test_sortedset_operator_symmetric_difference()

Test using the operator for symmetric difference

test_sortedset_operator_symmetric_difference_update()

Test using the operator for symmetric difference update

test_sortedset_operator_union()

Test using the operator for union

test_sortedset_operator_update()

Test using the operator for updates

test_sortedset_pickle()

Test pickling a sorted set

test_sortedset_pop()

Test popping a value from a sorted set

test_sortedset_remove()

Test removing values from a sorted set

test_sortedset_sort()

Test sorting the sorting set

test_sortedset_symmetric_difference()

Test the set symmetric difference implementation with a standard iterable.

test_sortedset_symmetric_difference_generator()

Test the set symmetric difference implementation with a generator.

test_sortedset_symmetric_difference_update()

Test the set symmetric difference update implementation with a standard iterable.

test_sortedset_symmetric_difference_update_generator()

Test the set symmetric difference implementation with a generator.

test_sortedset_union_generator()

Test the set intersection implementation with a generator.

test_sortedset_union_multiple_iterable()

Test the set intersection implementation with multiple iterables.

test_sortedset_union_single_iterable()

Test the set intersection implementation with a single iterable.

test_sortedset_update_generator()

Test the set intersection update implementation with a generator.

test_sortedset_update_multiple_iterable()

Test the set intersection update implementation with multiple iterables.

test_sortedset_update_single_iterable()

Test the set intersection update implementation with a single iterable.

test_sortedsetview_comparsion()

Test using the sorted set view's comparsion operators

test_sortedsetview_count()

Test using the sorted set view's count method

test_sortedsetview_dunder()

Test using the sorted set view's base dunder methods

test_sortedsetview_hash()

Test using the sorted set view's hash method

test_sortedsetview_index()

Test using the sorted set view's hash method

test_sortedsetview_reversed()

Test the sorted set view's __reversed__ dunder method