mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
Fix BackwardTest failure which was just compiler-drive differences in floating point precision.
BOOST_CHECK_CLOSE's tolerance is proportional to the value on the left, so 0.0 has zero tolerance. Changed to an explicit range.
This commit is contained in:
parent
ba52fa163b
commit
c61231fad9
@ -159,7 +159,9 @@ public:
|
||||
|
||||
BOOST_CHECK( oovCount == 0 );
|
||||
SLOPPY_CHECK_CLOSE( TransformLMScore(p_licenses + p_the_licenses), fullScore, 0.01);
|
||||
SLOPPY_CHECK_CLOSE( TransformLMScore( 0.0 ), ngramScore, 0.01);
|
||||
// Check ngramScore is 0.0
|
||||
BOOST_CHECK_GT(0.0001, ngramScore);
|
||||
BOOST_CHECK_LT(-0.0001, ngramScore);
|
||||
}
|
||||
|
||||
// the licenses for
|
||||
|
Loading…
Reference in New Issue
Block a user