#include "LFN.h" #include "asserts.h" #include "CHB.h" #include "FunVCOComposite.h" #include "Gray.h" #include "Shaper.h" #include "TestComposite.h" #include "VocalFilter.h" #include template inline static void test() { std::shared_ptr comp = Comp::getDescription(); std::set names; assertEQ(comp->getNumParams(), Comp::NUM_PARAMS); assertGT(comp->getNumParams(), 0); for (int i = 0; i < comp->getNumParams(); ++i) { auto config = comp->getParam(i); assertLT(config.min, config.max); assertLE(config.def, config.max); assertGE(config.def, config.min); assert(config.name); std::string name = config.name; assert(!name.empty()); // make sure they are unique assert(names.find(name) == names.end()); names.insert(name); } } void testIComposite() { test>(); test>(); test>(); test>(); test>(); test>(); }