mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-11 13:26:58 +00:00
move utf8::lowercase tests to the right test file
fixes up b6508091a23c92b6752e9f8e5257aaa58cdc2cde
This commit is contained in:
parent
b6508091a2
commit
e6ebc74ef2
@ -20,6 +20,8 @@
|
||||
#include "serialization/unicode.hpp"
|
||||
#include <boost/test/auto_unit_test.hpp>
|
||||
|
||||
BOOST_AUTO_TEST_SUITE ( test_serialization_utils_and_unicode )
|
||||
|
||||
BOOST_AUTO_TEST_CASE( utils_join_test )
|
||||
{
|
||||
std::vector<std::string> fruit;
|
||||
@ -73,3 +75,12 @@ BOOST_AUTO_TEST_CASE( utils_unicode_test )
|
||||
BOOST_CHECK_EQUAL(nonbmp_u8, unicode_cast<utf8::string>(nonbmp_u4));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( test_lowercase )
|
||||
{
|
||||
BOOST_CHECK_EQUAL ( utf8::lowercase("FOO") , "foo" );
|
||||
BOOST_CHECK_EQUAL ( utf8::lowercase("foo") , "foo" );
|
||||
BOOST_CHECK_EQUAL ( utf8::lowercase("FoO") , "foo" );
|
||||
BOOST_CHECK_EQUAL ( utf8::lowercase("fO0") , "fo0" );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
@ -18,8 +18,6 @@
|
||||
|
||||
#include "util.hpp"
|
||||
|
||||
#include "serialization/unicode.hpp"
|
||||
|
||||
#include <boost/cstdint.hpp>
|
||||
|
||||
BOOST_AUTO_TEST_SUITE( util )
|
||||
@ -142,11 +140,6 @@ BOOST_AUTO_TEST_CASE( test_count_leading_ones )
|
||||
BOOST_CHECK( count_leading_ones(static_cast<boost::uint16_t>(54321)) == 2 );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( test_lowercase )
|
||||
{
|
||||
BOOST_CHECK_EQUAL ( utf8::lowercase("FOO") , "foo" );
|
||||
}
|
||||
|
||||
/* vim: set ts=4 sw=4: */
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
Loading…
x
Reference in New Issue
Block a user