Skip to content
Snippets Groups Projects
Commit 79e8a354 authored by tobias's avatar tobias
Browse files

fix floating point problem in sdf unit test

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2240 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 6f1e9cb3
Branches
Tags
No related merge requests found
......@@ -104,10 +104,10 @@ BOOST_AUTO_TEST_CASE(properties_sdf)
{
BOOST_REQUIRE(i->HasProp("prop_one"));
BOOST_REQUIRE(i->HasProp("prop_two"));
BOOST_CHECK_EQUAL(i->GetStringProp("prop_one"),
boost::lexical_cast<std::string>(count));
BOOST_CHECK_EQUAL(i->GetStringProp("prop_two"),
boost::lexical_cast<std::string>(count*(-2)));
BOOST_CHECK_CLOSE(boost::lexical_cast<Real>(i->GetStringProp("prop_one")),
Real(count),Real(1e-4));
BOOST_CHECK_CLOSE(boost::lexical_cast<Real>(i->GetStringProp("prop_two")),
Real(count*(-2.2)),Real(1e-4));
}
}
......
......@@ -19,7 +19,7 @@ M END
1
> <prop_two>
-2
-2.2
$$$$
Simple Ligand 2
......@@ -43,6 +43,6 @@ M END
2
> <prop_two>
-4
-4.4
$$$$
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment