forked from boostorg/static_string
Update to_static_string tests
This commit is contained in:
@ -3708,27 +3708,33 @@ testToStaticString()
|
|||||||
// 99% of the time.
|
// 99% of the time.
|
||||||
{
|
{
|
||||||
auto str = to_static_string(std::numeric_limits<float>::max());
|
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());
|
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());
|
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());
|
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());
|
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());
|
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