Ticket #1489: boost_interval_check.cpp
| File boost_interval_check.cpp, 412 bytes (added by , 15 years ago) |
|---|
| Line | |
|---|---|
| 1 | #define BOOST_AUTO_TEST_MAIN |
| 2 | #include <boost/test/auto_unit_test.hpp> |
| 3 | #include <boost/test/floating_point_comparison.hpp> |
| 4 | |
| 5 | #include "boost/numeric/interval.hpp" |
| 6 | #include "boost/numeric/interval/io.hpp" |
| 7 | |
| 8 | using boost::unit_test::test_suite; |
| 9 | |
| 10 | BOOST_AUTO_TEST_CASE(test_interval) |
| 11 | { |
| 12 | boost::numeric::interval<double> v1=0; |
| 13 | boost::numeric::interval<double> v2=1; |
| 14 | BOOST_CHECK_CLOSE(v1,v2,v2); |
| 15 | } |
| 16 | |
| 17 |
