#include #include #include #include #include #include #include "param/fixedp.h" using namespace std; class FixedPTestSuite : public Test::Suite{ public: FixedPTestSuite(){ TEST_ADD(FixedPTestSuite::test_fixedp); } protected: virtual void setup(){ cout << endl; } virtual void tear_down(){ cout << endl; } typedef FixedPoint<16, int> q16_t; private: void test_fixedp(){ q16_t d1(0.5); q16_t d2(0.7777); cout << d1 * d2 << endl; TEST_ASSERT(1 == 1); } }; bool run_tests(){ FixedPTestSuite test_suits; Test::TextOutput output(Test::TextOutput::Verbose); return test_suits.run(output, false); // Note the 'false' parameter } int main(){run_tests();return 0;}