45 lines
962 B
C++
45 lines
962 B
C++
|
#ifndef BOOST_SAFE_NUMERICS_TEST_CHECKED_COMPARISON_HPP
|
||
|
#define BOOST_SAFE_NUMERICS_TEST_CHECKED_COMPARISON_HPP
|
||
|
|
||
|
// Copyright (c) 2018 Robert Ramey
|
||
|
//
|
||
|
// Distributed under the Boost Software License, Version 1.0. (See
|
||
|
// accompanying file LICENSE_1_0.txt or copy at
|
||
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||
|
|
||
|
#include "test_checked_values.hpp"
|
||
|
|
||
|
// test result matrices
|
||
|
|
||
|
// key
|
||
|
// < less than
|
||
|
// > greater than
|
||
|
// = equal to
|
||
|
// ! indeterminant
|
||
|
|
||
|
constexpr const char * signed_comparison_results[] = {
|
||
|
// 012345678
|
||
|
/* 0*/ "!!!!!!!!!",
|
||
|
/* 1*/ "!!!!!!!!!",
|
||
|
/* 2*/ "!!!>>>>>>",
|
||
|
/* 3*/ "!!<=>>>>>",
|
||
|
/* 4*/ "!!<<=>>>>",
|
||
|
/* 5*/ "!!<<<=>>>",
|
||
|
/* 6*/ "!!<<<<=>>",
|
||
|
/* 7*/ "!!<<<<<=>",
|
||
|
/* 8*/ "!!<<<<<<!",
|
||
|
};
|
||
|
|
||
|
constexpr const char * unsigned_comparison_results[] = {
|
||
|
// 0123456
|
||
|
/* 0*/ "!!!!!!!",
|
||
|
/* 1*/ "!!!!!!!",
|
||
|
/* 2*/ "!!!>>>>",
|
||
|
/* 3*/ "!!<=>>>",
|
||
|
/* 4*/ "!!<<=>>",
|
||
|
/* 5*/ "!!<<<=>",
|
||
|
/* 6*/ "!!<<<<!",
|
||
|
};
|
||
|
|
||
|
#endif // BOOST_SAFE_NUMERICS_TEST_CHECKED_COMPARISON_HPP
|