maths.test_abs¶
Classes¶
Test cases for abs_max function. |
|
Test cases for abs_max_sort function. |
|
Test cases for abs_min function. |
|
Test cases for abs_val function. |
Module Contents¶
- class maths.test_abs.TestAbsMax¶
Test cases for abs_max function.
- test_empty_list()¶
Test abs_max with empty list.
- test_mixed_numbers()¶
Test abs_max with mixed positive and negative numbers.
- test_negative_numbers()¶
Test abs_max with negative numbers.
- test_positive_numbers()¶
Test abs_max with positive numbers.
- test_single_element()¶
Test abs_max with single element list.
- class maths.test_abs.TestAbsMaxSort¶
Test cases for abs_max_sort function.
- test_consistency_with_abs_max()¶
Test that abs_max_sort gives same results as abs_max.
- test_empty_list()¶
Test abs_max_sort with empty list.
- test_mixed_numbers()¶
Test abs_max_sort with mixed positive and negative numbers.
- test_negative_numbers()¶
Test abs_max_sort with negative numbers.
- test_positive_numbers()¶
Test abs_max_sort with positive numbers.
- test_single_element()¶
Test abs_max_sort with single element list.
- class maths.test_abs.TestAbsMin¶
Test cases for abs_min function.
- test_empty_list()¶
Test abs_min with empty list.
- test_mixed_numbers()¶
Test abs_min with mixed positive and negative numbers.
- test_negative_numbers()¶
Test abs_min with negative numbers.
- test_positive_numbers()¶
Test abs_min with positive numbers.
- test_single_element()¶
Test abs_min with single element list.