Mercurial > hg > svcore
diff base/test/svcore-base-test.cpp @ 1742:52705a328b34 by-id
Rejig ById so as to put everything in a single pool, so that at the core you can go from numeric id (untyped) to anything the object can be dynamic_cast to. Useful for building other abstractions like PlayParameter-type registrations that don't know about e.g. Models. Probably some more tweaking needed. Also add tests
author | Chris Cannam |
---|---|
date | Fri, 28 Jun 2019 17:36:30 +0100 |
parents | 172bd3374adf |
children |
line wrap: on
line diff
--- a/base/test/svcore-base-test.cpp Thu Jun 27 13:08:10 2019 +0100 +++ b/base/test/svcore-base-test.cpp Fri Jun 28 17:36:30 2019 +0100 @@ -20,6 +20,7 @@ #include "TestVampRealTime.h" #include "TestColumnOp.h" #include "TestMovingMedian.h" +#include "TestById.h" #include "TestEventSeries.h" #include "StressEventSeries.h" @@ -91,13 +92,19 @@ if (QTest::qExec(&t, argc, argv) == 0) ++good; else ++bad; } -/* + { + TestById t; + if (QTest::qExec(&t, argc, argv) == 0) ++good; + else ++bad; + } + +#ifdef NOT_DEFINED { StressEventSeries t; if (QTest::qExec(&t, argc, argv) == 0) ++good; else ++bad; } -*/ +#endif if (bad > 0) { SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl;