#include "harness/test.h" #include #include #include // sum of first 10 squares is 385 int test(PulsarMain plsr) { plsr_reset(plsr); plsr_go(plsr); int result = plsr_ret(plsr); std::cout << "result: " << result << '\n'; const int exp = 385; if (result != exp) { std::cout << "test failed: expected: " << exp << " but received: " << result << '\n'; return 1; } return 0; }