-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_abs.cpp
More file actions
18 lines (15 loc) · 840 Bytes
/
Copy pathtest_abs.cpp
File metadata and controls
18 lines (15 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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()
{
test_one_arg_harness("dectest0/abs0.decTest", "abs", [](const auto x) { return boost::decimal::abs(x); });
test_one_arg_harness("dectest/abs.decTest", "abs", [](const auto x) { return boost::decimal::abs(x); });
test_one_arg_harness("dectest/ddAbs.decTest", "abs", [](const auto x) { return boost::decimal::abs(x); });
test_one_arg_harness("dectest/dqAbs.decTest", "abs", [](const auto x) { return boost::decimal::abs(x); });
test_one_arg_harness("dectest/dsAbs.decTest", "abs", [](const auto x) { return boost::decimal::abs(x); });
return boost::report_errors();
}