You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-
- #include "asserts.h"
- #include "Divider.h"
- static void testDiv0()
- {
- bool called = false;
- auto lambda = [&]() {
- called = true;
- };
- Divider d;
- d.setup(3, lambda);
- assert(!called);
-
- // fires on first call
- d.step();
- assert(called);
-
- called = false;
- d.step();
- assert(!called);
- d.step();
- assert(!called);
-
- d.step();
- assert(called);
- }
-
- void testUtils()
- {
- testDiv0();
- }
|