fix even more warnings and reduce some tests runtimes
tested under gcc and clang
This commit is contained in:
parent
ddb261348c
commit
9d3c848dfb
9 changed files with 29 additions and 26 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue