-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_subtract.cpp
More file actions
20 lines (16 loc) · 977 Bytes
/
Copy pathtest_subtract.cpp
File metadata and controls
20 lines (16 loc) · 977 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_two_arg_harness("dectest0/subtract0.decTest", "subtract", [](const auto x, const auto y) { return x - y; });
test_two_arg_harness("dectest/subtract.decTest", "subtract", [](const auto x, const auto y) { return x - y; });
test_two_arg_harness("dectest/ddSubtract.decTest", "subtract", [](const auto x, const auto y) { return x - y; });
test_two_arg_harness("dectest/dqSubtract.decTest", "subtract", [](const auto x, const auto y) { return x - y; });
test_two_arg_harness("dectest/dsSubtract.decTest", "subtract", [](const auto x, const auto y) { return x - y; });
return boost::report_errors();
}