1 | /////////////////////////////////////////////////////////////////////////////////
|
---|
2 | //
|
---|
3 | // C++ Unit Test driver
|
---|
4 | //
|
---|
5 | /////////////////////////////////////////////////////////////////////////////////
|
---|
6 |
|
---|
7 | #define BOOST_TEST_MODULE myut
|
---|
8 | #include <boost/test/included/unit_test.hpp>
|
---|
9 | #include <boost/test/floating_point_comparison.hpp>
|
---|
10 | #include "Vector.hpp"
|
---|
11 |
|
---|
12 | BOOST_AUTO_TEST_SUITE(defaultctor)
|
---|
13 |
|
---|
14 | BOOST_AUTO_TEST_CASE(test0)
|
---|
15 | {
|
---|
16 | {
|
---|
17 | Vector vector;
|
---|
18 | BOOST_CHECK_CLOSE_FRACTION(vector[0], 0.0, 0.0001);
|
---|
19 | }
|
---|
20 | }
|
---|
21 |
|
---|
22 | BOOST_AUTO_TEST_SUITE_END()
|
---|