]>
Commit | Line | Data |
---|---|---|
3a9019d9 FG |
1 | //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.\r |
2 | \r | |
3 | //Distributed under the Boost Software License, Qersion 1.0. (See accompanying\r | |
4 | //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\r | |
5 | \r | |
6 | #include <boost/qvm/quat_operations.hpp>\r | |
7 | #include "test_qvm_quaternion.hpp"\r | |
8 | #include "gold.hpp"\r | |
9 | #include <functional>\r | |
10 | \r | |
11 | namespace\r | |
12 | {\r | |
13 | void\r | |
14 | test()\r | |
15 | {\r | |
16 | using namespace boost::qvm::sfinae;\r | |
17 | test_qvm::quaternion<Q1> const x(42,1);\r | |
18 | for( int i=0; i!=4; ++i )\r | |
19 | {\r | |
20 | {\r | |
21 | test_qvm::quaternion<Q1> y(x);\r | |
22 | BOOST_TEST(cmp(x,y,std::equal_to<float>()));\r | |
23 | y.a[i]=0;\r | |
24 | BOOST_TEST(!cmp(x,y,std::equal_to<float>()));\r | |
25 | }\r | |
26 | }\r | |
27 | }\r | |
28 | }\r | |
29 | \r | |
30 | int\r | |
31 | main()\r | |
32 | {\r | |
33 | test();\r | |
34 | return boost::report_errors();\r | |
35 | }\r |