Line data Source code
1 : #define BOOST_TEST_MODULE arithmetic 2 : #include <boost/test/included/unit_test.hpp> 3 : #include "exprtest.hpp" 4 : 5 6 : EXPRTEST(basicop1, " 2 +\t3\n", 5) // Whitespace ignored 6 6 : EXPRTEST(basicop2, " 2 -\t3\n", -1) 7 6 : EXPRTEST(basicop3, " 2 *\t3\n", 6) 8 6 : EXPRTEST(basicop4, " 2 /\t3\n", 2./3.) // Double division 9 6 : EXPRTEST(basicop5, " 2 ** 3\n", 8)