Line data Source code
1 : #define BOOST_TEST_MODULE literals 2 : #include <boost/test/included/unit_test.hpp> 3 : #include "exprtest.hpp" 4 : 5 : using namespace boost::math::constants; 6 : 7 6 : EXPRTEST(literal1, "1.234" , 1.234) 8 6 : EXPRTEST(literal2, "4.2e2" , 420) 9 6 : EXPRTEST(literal3, "5e-01" , 0.5) 10 6 : EXPRTEST(literal4, "-3" , -3) 11 6 : EXPRTEST(literal5, "pi" , pi<double>()) 12 6 : EXPRTEST(literal6, "epsilon", std::numeric_limits<double>::epsilon()) 13 6 : EXPRTEST(literal7, "phi" , phi<double>()) 14 6 : EXPRTEST(literal8, "e" , e<double>())