cmoon::test::assert_is_not_type
Defined in module
<cmoon.test>
|
(1) |
Throws an assert_exception
if std::same_as<Type1, Type2>
is true
.
Parameters
message | - | Extra information to be added to the error message |
location | - | Information about where in the file this assertion was ran |
Return value
(none)
Example
import cmoon.test;
class example_test : public cmoon::test::test_case
{
public:
example_test()
: cmoon::test::test_case{"example test"} {}
void operator()() override
{
int value;
float value2;
cmoon::test::assert_is_not_type<decltype(value), decltype(value2)>();
}
};