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

added median tests.

[SVN r3541]
This commit is contained in:
Paul A. Bristow
2006-12-20 15:50:50 +00:00
parent 2f47640e6c
commit 4863b82990
4 changed files with 24 additions and 16 deletions

View File

@@ -530,7 +530,7 @@ int test_main(int, char* [])
BOOST_CHECK_EQUAL(tristd.mode(), 0);
BOOST_CHECK_EQUAL(tristd.upper(), 1);
cout << median(tristd) << endl;
cout << range(tristd).first << ' ' << range(tristd).second << endl;
triangular_distribution<> tri011(0, 1, 1); // Using default RealType double.
// mode is upper