tests.structure.collections_.test_sortedset#
Unit tests for structure.collections.sortedset module.
Functions
Basic generator to assist with testing |
|
Tests to make sure values added to set stay in insertion order |
|
Test adding value to an empty sorted set |
|
Test clearing all data in the sorted set |
|
Test the sorted set basic comparsions |
|
Test using the sorted set's count method |
|
Test the set difference implementation with a generator. |
|
Test the set difference implementation with a multiple iterables. |
|
Test the set difference implementation with a single iterable. |
|
Test the set difference update implementation with a generator. |
|
Test the set difference update implementation with multiple iterables. |
|
Test the set difference update implementation with a single iterable. |
|
Test discarding values from a sorted set |
|
Test adding a value already contained in a sorted set |
|
Test getting the sorted set's view |
|
Test getting the sorted set's view |
|
Test using the sorted sets hash method |
|
Test using the sorted set's index method |
|
Ensure we can initalize a sorted set |
|
Ensure we can't initalize from a non-iterable object. |
|
Ensure we can initalize a sorted set from a generator and order is maintained. |
|
Ensure that sorted set doesn't store repeated values when initalizing from an iterable |
|
Ensure we can initalize a sorted set with a sequence of data and order is maintained. |
|
Test the set intersection implementation with a generator. |
|
Test the set intersection implementation with multiple iterables. |
|
Test the set intersection implementation with a single iterable. |
|
Test the set intersection update implementation with a generator. |
|
Test the set intersection update implementation with multiple iterables. |
|
Test the set intersection update implementation with a single iterable. |
|
Test iterating over the sorted set |
|
Test using the operator for difference |
|
Test using the operator for difference update |
|
Test using the operator for intersection |
|
Test using the operator for intersection update |
|
Test using the operator for symmetric difference |
|
Test using the operator for symmetric difference update |
|
Test using the operator for union |
|
Test using the operator for updates |
|
Test pickling a sorted set |
|
Test popping a value from a sorted set |
|
Test removing values from a sorted set |
|
Test sorting the sorting set |
|
Test the set symmetric difference implementation with a standard iterable. |
|
Test the set symmetric difference implementation with a generator. |
|
Test the set symmetric difference update implementation with a standard iterable. |
|
Test the set symmetric difference implementation with a generator. |
|
Test the set intersection implementation with a generator. |
|
Test the set intersection implementation with multiple iterables. |
|
Test the set intersection implementation with a single iterable. |
|
Test the set intersection update implementation with a generator. |
|
Test the set intersection update implementation with multiple iterables. |
|
Test the set intersection update implementation with a single iterable. |
|
Test using the sorted set view's comparsion operators |
|
Test using the sorted set view's count method |
|
Test using the sorted set view's base dunder methods |
|
Test using the sorted set view's hash method |
|
Test using the sorted set view's hash method |
|
Test the sorted set view's __reversed__ dunder method |