1#ifndef BOOST_SAFE_NUMERICS_TEST_ADD_AUTOMATIC_RESULTS_HPP
2#define BOOST_SAFE_NUMERICS_TEST_ADD_AUTOMATIC_RESULTS_HPP
3
4// Copyright (c) 2019 Robert Ramey
5//
6// Distributed under the Boost Software License, Version 1.0. (See
7// accompanying file LICENSE_1_0.txt or copy at
8// http://www.boost.org/LICENSE_1_0.txt)
9
10#include "test_values.hpp"
11
12// note: same test matrix as used in test_checked. Here we test all combinations
13// safe and unsafe integers. in test_checked we test all combinations of
14// integer primitives
15
16constexpr const char *test_subtraction_automatic_result[
17 boost::mp11::mp_size<test_values>::value
18] = {
19// 0 0 0 0
20// 012345670123456701234567012345670
21// 012345678901234567890123456789012
22/* 0*/ "..............x...............xx.",
23/* 1*/ "..............x...............xx.",
24/* 2*/ ".............x...............xxx.",
25/* 3*/ "..............................xx.",
26/* 4*/ "..............x...............xx.",
27/* 5*/ "..............x...............xx.",
28/* 6*/ ".............x...............xxx.",
29/* 7*/ "..............................xx.",
30
31/* 8*/ "..............x...............xx.",
32/* 9*/ "..............x...............xx.",
33/*10*/ ".............x...............xxx.",
34/*11*/ "..............................xx.",
35/*12*/ "..............x...............xx.",
36/*13*/ "..xx..xx..xx..xx..............xx.",
37/*14*/ "xx..xx..xx..xx..xxxxxxxxxxxxxxxx.",
38/*15*/ "..............................xx.",
39
40// 0 0 0 0
41// 012345670123456701234567012345670
42// 012345678901234567890123456789012
43/*16*/ "..............x...............xx.",
44/*17*/ "..............x...............xx.",
45/*18*/ "..............x...............xx.",
46/*19*/ "..............x...............xx.",
47/*20*/ "..............x...............xx.",
48/*21*/ "..............x...............xx.",
49/*22*/ "..............x...............xx.",
50/*23*/ "..............x...............xx.",
51
52/*24*/ "..............x...............xx.",
53/*25*/ "..............x...............xx.",
54/*26*/ "..............x...............xx.",
55/*27*/ "..............x...............xx.",
56/*28*/ "..............x...............xx.",
57/*29*/ "..xx..xx..xx..xx..............xx.",
58/*30*/ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
59/*31*/ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
60/*32*/ "..............x...............xx."
61};
62
63
64#endif
65
66

source code of boost/libs/safe_numerics/test/test_subtract_automatic_results.hpp