-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_max.cpp
More file actions
20 lines (16 loc) · 882 Bytes
/
test_max.cpp
File metadata and controls
20 lines (16 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2026 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(17);
test_two_arg_harness("dectest0/max0.decTest", "max", [](const auto x, const auto y) { return boost::decimal::fmax(x, y); });
test_two_arg_harness("dectest/max.decTest", "max", [](const auto x, const auto y) { return boost::decimal::fmax(x, y); });
test_two_arg_harness("dectest/ddMax.decTest", "max", [](const auto x, const auto y) { return boost::decimal::fmax(x, y); });
std::cerr << std::setprecision(34);
test_two_arg_harness("dectest/dqMax.decTest", "max", [](const auto x, const auto y) { return boost::decimal::fmax(x, y); });
return boost::report_errors();
}