]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/qvm/test/zero_quat_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / qvm / test / zero_quat_test.cpp
CommitLineData
92f5a8d4
TL
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
9namespace
10 {
11 void
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
25int
26main()
27 {
28 test();
29 return boost::report_errors();
30 }