2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Update to use new out-of-bounds error checking.

Refs #6934.

[SVN r78771]
This commit is contained in:
John Maddock
2012-05-30 16:52:18 +00:00
parent c732b6e85b
commit 41bd4bd442
11 changed files with 40 additions and 41 deletions

View File

@@ -23,6 +23,7 @@
using boost::math::triangular_distribution;
#include <boost/math/tools/test.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include "test_out_of_range.hpp"
#include <iostream>
using std::cout;
@@ -524,6 +525,7 @@ void test_spots(RealType)
}
BOOST_CHECK_THROW(triangular_distribution<RealType>(1, 0), std::domain_error); // lower > upper!
check_out_of_range<triangular_distribution<RealType> >(-1, 0, 1);
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])