Line data Source code
1 : #define BOOST_TEST_MODULE unary
2 : #include <boost/test/included/unit_test.hpp>
3 : #include "exprtest.hpp"
4 :
5 6 : EXPRTEST(unary1, "-(2)", -2)
6 6 : EXPRTEST(unary2, "-(-2)", 2)
7 6 : EXPRTEST(unary3, "+(-2)", -2)
8 6 : EXPRTEST(unary4, "+(+2)", 2)
9 6 : EXPRTEST(unary5, "!(1)", 0)
10 6 : EXPRTEST(unary6, "!(0)", 1)
|