Update tests

This commit is contained in:
Krystian Stasiowski
2020-02-22 19:25:21 -05:00
parent 50a91d6088
commit af4394921d
2 changed files with 43 additions and 40 deletions

View File

@ -3713,34 +3713,32 @@ testToStaticString()
{
auto str = to_static_string(std::numeric_limits<float>::max());
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
static_string<0>::npos);
static_string<0>::npos || str == "infinity" || str == "inf");
}
{
auto str = to_static_string(std::numeric_limits<double>::max());
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
static_string<0>::npos);
static_string<0>::npos || str == "infinity" || str == "inf");
}
{
auto str = to_static_string(std::numeric_limits<long double>::max());
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
static_string<0>::npos);
std::cout << "3725: " << str << '\n';
static_string<0>::npos || str == "infinity" || str == "inf");
}
{
auto str = to_static_wstring(std::numeric_limits<float>::max());
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
static_string<0>::npos);
static_string<0>::npos || str == L"infinity" || str == L"inf");
}
{
auto str = to_static_wstring(std::numeric_limits<double>::max());
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
static_string<0>::npos);
static_string<0>::npos || str == L"infinity" || str == L"inf");
}
{
auto str = to_static_wstring(std::numeric_limits<long double>::max());
BOOST_TEST(str.find('e') != static_string<0>::npos || str.find('.') !=
static_string<0>::npos);
std::wcout << "3741: " << str << '\n';
static_string<0>::npos || str == L"infinity" || str == L"inf");
}
}