Commit 94493a52 authored by reichenbach's avatar reichenbach
Browse files

[FIX] changed tset to use a delta

parent 43d8d90a
......@@ -75,7 +75,14 @@ public:
{
reference( i, i ) = 2.0 * piDouble * 3.0 / 8.0;
}
TS_ASSERT_EQUALS( result, reference );
for( size_t i = 0; i < 15; ++i )
{
for( size_t j = 0; j < 15; ++j )
{
TS_ASSERT_DELTA( result( i, j ), reference( i, j ), 1e-9 );
}
}
}
/**
......@@ -98,7 +105,14 @@ public:
{
reference( i, i ) = 400.0;
}
TS_ASSERT_EQUALS( result, reference );
for( size_t i = 0; i < 15; ++i )
{
for( size_t j = 0; j < 15; ++j )
{
TS_ASSERT_DELTA( result( i, j ), reference( i, j ), 1e-9 );
}
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment