TuttleOFX  1
main.cpp
Go to the documentation of this file.
00001 #include <terry/globals.hpp>
00002 #include <terry/math/Rect.hpp>
00003 
00004 #include <iostream>
00005 
00006 #define BOOST_TEST_MODULE terry_math_rect_tests
00007 #include <boost/test/unit_test.hpp>
00008 using namespace boost::unit_test;
00009 
00010 BOOST_AUTO_TEST_SUITE( terry_math_rect_tests_suite01 )
00011 
00012 BOOST_AUTO_TEST_CASE( access )
00013 {
00014         terry::Rect<double> r(11, 22, 33, 44);
00015         
00016         BOOST_CHECK_EQUAL( r[0], r.x1 );
00017         BOOST_CHECK_EQUAL( r[1], r.y1 );
00018         BOOST_CHECK_EQUAL( r[2], r.x2 );
00019         BOOST_CHECK_EQUAL( r[3], r.y2 );
00020 }
00021 
00022 BOOST_AUTO_TEST_SUITE_END()