Improved support for testing on older versions of gcc.

Link tests.
Plus more...


[SVN r2980]
This commit is contained in:
Daniel James
2006-06-11 19:42:55 +00:00
parent 653a58f39b
commit 58dda15273
11 changed files with 222 additions and 23 deletions

View File

@@ -80,7 +80,7 @@ namespace test
// Finally, check that size matches up.
if(x1.size() != size)
BOOST_ERROR("x1.size() doesn't match actual size.");
if(static_cast<float>(size) / x1.bucket_count() != x1.load_factor())
if(static_cast<float>(size) / static_cast<float>(x1.bucket_count()) != x1.load_factor())
BOOST_ERROR("x1.load_factor() doesn't match actual load_factor.");
}
}