-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_minus.cpp
More file actions
20 lines (16 loc) · 862 Bytes
/
Copy pathtest_minus.cpp
File metadata and controls
20 lines (16 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2025 Matt Borland
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/decimal.hpp>
#include <boost/core/lightweight_test.hpp>
#include "test_harness.hpp"
int main()
{
std::cerr << std::setprecision(std::numeric_limits<boost::decimal::decimal128_t>::max_digits10);
test_one_arg_harness("dectest0/minus0.decTest", "minus", [](const auto x) { return -x; });
test_one_arg_harness("dectest/minus.decTest", "minus", [](const auto x) { return -x; });
test_one_arg_harness("dectest/ddMinus.decTest", "minus", [](const auto x) { return -x; });
test_one_arg_harness("dectest/dqMinus.decTest", "minus", [](const auto x) { return -x; });
test_one_arg_harness("dectest/dsMinus.decTest", "minus", [](const auto x) { return -x; });
return boost::report_errors();
}