#include "harness/test.h" #include #include #include // 1 + 2 * 3 = 7 int test(PulsarMain plsr) { plsr_reset(plsr); plsr_go(plsr); int result = plsr_ret(plsr); std::cout << "result: " << result << '\n'; const int exp = 7; if (result != exp) { std::cout << "test failed: expected: " << exp << " but received: " << result << '\n'; return 1; } return 0; }