diff --git a/tests/Point.cpp b/tests/Point.cpp index 742ba29c..f3e5f687 100644 --- a/tests/Point.cpp +++ b/tests/Point.cpp @@ -21,13 +21,14 @@ // -------------------------------------------------------------------------------------------------------------------- -int main() +template +static int runTestsPerType() { USE_NAMESPACE_DGL; // basic usage { - Point p; + Point p; DISTRHO_ASSERT_EQUAL(p.getX(), 0, "point start X value is 0"); DISTRHO_ASSERT_EQUAL(p.getY(), 0, "point start Y value is 0"); @@ -40,7 +41,40 @@ int main() DISTRHO_ASSERT_EQUAL(p.getY(), 7, "point Y value changed to 7"); } - // TODO + return 0; +} + +int main() +{ + if (const int ret = runTestsPerType()) + return ret; + + if (const int ret = runTestsPerType()) + return ret; + + if (const int ret = runTestsPerType()) + return ret; + + if (const int ret = runTestsPerType()) + return ret; + + if (const int ret = runTestsPerType()) + return ret; + + if (const int ret = runTestsPerType()) + return ret; + + if (const int ret = runTestsPerType()) + return ret; + + if (const int ret = runTestsPerType()) + return ret; + + if (const int ret = runTestsPerType()) + return ret; + + if (const int ret = runTestsPerType()) + return ret; return 0; }