cmoon::test::test_suite::add_test_case
|
(1) |
Constructs the given test case derived type with the given arguments.
Parameters
args... | - | arguments used to construct T |
Return value
(none)
Example
import cmoon.test;
class example_test : public cmoon::test::test_case
{
public:
example_test(int arg1)
: cmoon::test::test_case{"example test"} {}
void operator()() override
{
}
};
int main()
{
cmoon::test::test_suite suite;
suite.add_test_case<example_test>(int{});
}