Testing Library
The Testing Library contains many different run-time assertions and a framework for creating, running, and displaying testing results.
Defined in module
<cmoon.test>
Core
test_result |
The result of running a test
|
test_case |
Abstract class of an invocable test
|
test_suite |
Class to store multiple test cases
|
Runners
text_test_runner |
Runs tests with text output to a stream
|
Assertions
assert_exception |
Exception used in a failed assertion
|
fail |
Immediately throws an assert_exception with a message
|
error |
Immediately throws a std::runtime_error with a message
|
assert_equal |
Asserts that the first argument is equal to the second argument
|
assert_not_equal |
Asserts that the first argument is not equal to the second argument
|
assert_true |
Asserts that the first argument is equivalent to true
|
assert_false |
Asserts that the first argument is equivalent to false
|
assert_is |
Asserts that the first argument is the same object as the second argument
|
assert_is_not |
Asserts that the first argument is not the same object as the second argument
|
assert_is_type |
Asserts that the first templated type is the same as the second templated type
|
assert_is_not_type |
Asserts that the first templated type is not the same as the second templated type
|
assert_is_specialization_of |
Asserts that the first templated type is a specialization of the second incomplete type
|
assert_is_not_specialization_of |
Asserts that the first templated type is not a specialization of the second incomplete type
|
assert_is_instance |
Asserts that the given object can be casted as the given templated type
|
assert_is_not_instance |
Asserts that the given object cannot be casted as the given templated type
|
assert_in |
Asserts that the given object can be found in the given range
|
assert_not_in |
Asserts that the given object cannot be found in the given range
|
assert_throws |
Asserts that the given callable object throws the given type as an exception
|
assert_almost_equal |
Asserts that the difference between the first two arguments are less than the given delta
|
assert_not_almost_equal |
Asserts that the difference between the first two arguments are greater than or equal to the given delta
|
assert_greater |
Asserts that the first argument is greater than the second argument
|
assert_greater_equal |
Asserts that the first argument is greater than or equal to the second argument
|
assert_less |
Asserts that the first argument is lesser than the second argument
|
assert_less_equal |
Asserts that the first argument is less than or equal to the second argument
|
assert_sequence_equal |
Asserts that the first sequence is equal to the second sequence
|
assert_sequence_not_equal |
Asserts that the two sequences are not equal
|
assert_sequence_almost_equal |
Asserts that the difference between corresponding elements in each sequence is not greater than the given delta
|
assert_sequence_not_almost_equal |
Asserts that the difference between an element in each sequence is greater than the given delta
|