]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/qvm/test/zero_quat_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / qvm / test / zero_quat_test.cpp
CommitLineData
1e59de90 1// Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
92f5a8d4 2
1e59de90
TL
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#ifdef BOOST_QVM_TEST_SINGLE_HEADER
7# include BOOST_QVM_TEST_SINGLE_HEADER
8#else
9# include <boost/qvm/quat_operations.hpp>
10#endif
92f5a8d4 11
92f5a8d4
TL
12#include "test_qvm_quaternion.hpp"
13
14namespace
15 {
16 void
17 test()
18 {
19 using namespace boost::qvm;
20 test_qvm::quaternion<Q1> v1=zero_quat<float>();
21 for( int i=0; i!=4; ++i )
22 BOOST_TEST(!v1.a[i]);
23 test_qvm::quaternion<Q2> v2(42,1);
24 set_zero(v2);
25 for( int i=0; i!=4; ++i )
26 BOOST_TEST(!v2.a[i]);
27 }
28 }
29
30int
31main()
32 {
33 test();
34 return boost::report_errors();
35 }