1 //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
2 
3 //Distributed under the Boost Software License, Version 1.0. (See accompanying
4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 #include <boost/qvm/quat_operations.hpp>
7 #include "test_qvm_quaternion.hpp"
8 
9 namespace
10     {
11     void
test()12     test()
13         {
14         using namespace boost::qvm;
15         test_qvm::quaternion<Q1> v1=zero_quat<float>();
16         for( int i=0; i!=4; ++i )
17                 BOOST_TEST(!v1.a[i]);
18         test_qvm::quaternion<Q2> v2(42,1);
19         set_zero(v2);
20         for( int i=0; i!=4; ++i )
21                 BOOST_TEST(!v2.a[i]);
22         }
23     }
24 
25 int
main()26 main()
27     {
28     test();
29     return boost::report_errors();
30     }
31