Coverage Tests - Project 1A Linked List Deque 61B
Flags for add tests
- "add_first_from_empty": Check that
addFirstworks on an empty deque. - "add_last_from_empty": Check that
addLastworks on an empty deque. - "add_first_nonempty": Check that
addFirstworks on a non-empty deque. - "add_last_nonempty": Check that
addLastworks on a non-empty deque.
Flags for add after remove tests
- "add_first_after_remove_to_empty": Add some elements to a deque and remove them all, then check that
addFirststill works. - "add_last_after_remove_to_empty": Add some elements to a deque and remove them all, then check that
addLaststill works.
Flags for remove tests
- "remove_first": Check that
removeFirstworks. - "remove_last": Check that
removeLastworks. - "remove_first_to_empty": Add some elements to a deque and remove almost all of them. Check that removing the last element with
removeFirstworks. - "remove_last_to_empty": Add some elements to a deque and remove almost all of them. Check that removing the last element with
removeLastworks. - "remove_first_to_one": Add some elements to a deque and remove almost all of them. Check that removing the second to last element with
removeFirstworks. - "remove_last_to_one": Add some elements to a deque and remove almost all of them. Check that removing the second to last element with
removeLastworks.
Flags for get tests
- "get_valid": Check that
getworks on a valid index. - "get_oob_large": Check that
getworks on a large, out of bounds index. - "get_oob_neg": Check that
getworks on a negative index. - "get_recursive_valid": Check that
getRecursiveworks on a valid index. - "get_recursive_oob_large": Check that
getRecursiveworks on a large, out of bounds index. - "get_recursive_oob_neg": Check that
getRecursiveworks on a negative index.
Flags for size tests
- "size": Check that
sizeworks. - "size_after_remove_to_empty": Add some elements to a deque and remove them all, then check that
sizestill works. - "size_after_remove_from_empty": Remove from an empty deque, then check that
sizestill works.
Flags for isEmpty tests
- "is_empty_true": Check that isEmpty works on an empty deque.
- "is_empty_false": Check that isEmpty works on a non-empty deque.
Flags for toList tests
- "to_list_empty": Check that toList works with empty LinkedListDeque61B.
- "to_list_nonempty": Check that toList works with non-empty LinkedListDeque61B.