tests.util Module

This module contains all unit tests for the lib.util module.

tests.unit.test_util – Unit Tests

tests.unit.test_util.test_load_dataset_bad_data_type()

Test that lib.util.load_dataset() raises a TypeError for a non-type value for data_type (int)

tests.unit.test_util.test_load_dataset_bad_dataset_missing()

Test that lib.util.load_dataset() raises a FileNotFoundError for a non-existent file dataset

tests.unit.test_util.test_load_dataset_bad_dataset_type_float()

Test that lib.util.load_dataset() raises a TypeError for a non-str value for dataset (float)

tests.unit.test_util.test_load_dataset_bad_root_missing()

Test that lib.util.load_dataset() raises a FileNotFoundError for a non-existent directory root

tests.unit.test_util.test_load_dataset_bad_root_type_float()

Test that lib.util.load_dataset() raises a TypeError for a non-str value for root (float)

tests.unit.test_util.test_load_dataset_bad_separator_type_float()

Test that lib.util.load_dataset() raises a TypeError for a non-str value for separator (float)

tests.unit.test_util.test_load_dataset_correctness()

Test the correctness of lib.util.load_dataset() by examining datatypes of outputs

tests.unit.test_util.test_wrap_bad_m_negative()

Test that lib.util.wrap() raises a ValueError for a \(m \lt 0\)

tests.unit.test_util.test_wrap_bad_m_type_float()

Test that lib.util.wrap() raises a TypeError for a non-int value for m (float)

tests.unit.test_util.test_wrap_bad_m_type_str()

Test that lib.util.wrap() raises a TypeError for a non-int value for m (str)

tests.unit.test_util.test_wrap_bad_n_type_float()

Test that lib.util.wrap() raises a TypeError for a non-int value for n (float)

tests.unit.test_util.test_wrap_bad_n_type_str()

Test that lib.util.wrap() raises a TypeError for a non-int value for n (str)

tests.unit.test_util.test_wrap_bad_n_zero()

Test that lib.util.wrap() raises a ValueError for \(n = 0\)

tests.unit.test_util.test_wrap_bad_para_type_float()

Test that lib.util.wrap() raises a TypeError for a non-int value for para (float)

tests.unit.test_util.test_wrap_correctness()

Test the correctness of lib.util.wrap() by examining outputs for expected properties