using std::list;
-using std::shared_ptr;
using std::string;
using std::vector;
#if BOOST_VERSION >= 106100
BOOST_CHECK_EQUAL ("hello_world", careful_string_filter("héllo_wörld"));
BOOST_CHECK_EQUAL ("hello_world", careful_string_filter("héllo_wörld"));
BOOST_CHECK_EQUAL ("hello_world_a", careful_string_filter("héllo_wörld_à"));
- BOOST_CHECK_EQUAL ("hello_world_CcGgIOoSsUu", careful_string_filter("hello_world_ÇçĞğİÖöŞşÜü"));
+ BOOST_CHECK_EQUAL ("hello_world_CcGgIOoSsUuLl", careful_string_filter("hello_world_ÇçĞğİÖöŞşÜüŁł"));
}
BOOST_AUTO_TEST_CASE (copy_in_bits_test)
{
for (int i = 0; i < 32; ++i) {
- make_random_file ("build/test/random.dat", rand() % (256 * 1024 * 1024));
+ make_random_file ("build/test/random.dat", std::max(1, rand() % (256 * 1024 * 1024)));
progress_values.clear ();
copy_in_bits ("build/test/random.dat", "build/test/random.dat2", boost::bind(&progress, _1));