fix even more warnings and reduce some tests runtimes

tested under gcc and clang
This commit is contained in:
Johann Dreo 2020-04-28 17:41:50 +02:00
commit 9d3c848dfb
9 changed files with 29 additions and 26 deletions

View file

@ -42,15 +42,16 @@ int main() {
eoUniformGenerator<double> u2(0.003, 0.05 );
eoUniformGenerator<unsigned long> u3( 10000U, 10000000U);
try
{ // throws an error
eoUniformGenerator<unsigned long> utest( 10000000U, 10000U);
throw; // if this succeeds something is wrong, make sure that that is noticed
}
catch (std::logic_error& e)
{
std::cout << e.what() << std::endl;
}
// Test replaced by an assert
// try
// { // throws an error
// eoUniformGenerator<unsigned long> utest( 10000000U, 10000U);
// throw; // if this succeeds something is wrong, make sure that that is noticed
// }
// catch (std::logic_error& e)
// {
// std::cout << e.what() << std::endl;
// }
std::ofstream os("t-eoRandom.out");