mirror of
https://github.com/kennethreitz/static_string.git
synced 2026-06-05 23:00:20 +00:00
Update to_static_string tests
This commit is contained in:
+12
-6
@@ -3708,27 +3708,33 @@ testToStaticString()
|
||||
// 99% of the time.
|
||||
{
|
||||
auto str = to_static_string(std::numeric_limits<float>::max());
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos);
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
|
||||
static_string<0>::npos);
|
||||
}
|
||||
{
|
||||
auto str = to_static_string(std::numeric_limits<double>::max());
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos);
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
|
||||
static_string<0>::npos);
|
||||
}
|
||||
{
|
||||
auto str = to_static_string(std::numeric_limits<long double>::max());
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos);
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
|
||||
static_string<0>::npos);
|
||||
}
|
||||
{
|
||||
auto str = to_static_wstring(std::numeric_limits<float>::max());
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos);
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
|
||||
static_string<0>::npos);
|
||||
}
|
||||
{
|
||||
auto str = to_static_wstring(std::numeric_limits<double>::max());
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos);
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
|
||||
static_string<0>::npos);
|
||||
}
|
||||
{
|
||||
auto str = to_static_wstring(std::numeric_limits<long double>::max());
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos);
|
||||
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
|
||||
static_string<0>::npos);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user