kaycxx-test
C++ unit test framework
Loading...
Searching...
No Matches
assert_not_equal

Asserts that two values are not equal.

The comparison rules are the inverse of assert_equal: normal values use operator==, while C string forms compare text content instead of pointer identity.

#include <kaycxx/test.hpp>
using namespace kaycxx::test;
int main() {
assert_not_equal(41, 42);
assert_not_equal("debug", "release");
}
Unit test framework functions and types.
Definition test.hpp:15
Includes the complete public test API.

On failure, assert_not_equal throws assertion_error because the values compare equal.