~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/utf8_test.cc

  • Committer: Andrew Hutchings
  • Date: 2010-10-20 09:36:04 UTC
  • mto: This revision was merged to the branch mainline in revision 1907.
  • Revision ID: andrew@linuxjedi.co.uk-20101020093604-v2nwy1ljftgzoanu
Fix more unittests GCC 4.5 bugs

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
TEST(utf8, is_single)
31
31
{
32
 
  EXPECT_EQ(true, utf8::is_single('a'));
 
32
  ASSERT_TRUE(utf8::is_single('a'));
33
33
  const char *multi_byte= "ç";
34
 
  EXPECT_EQ(false, utf8::is_single(*multi_byte));
35
 
  EXPECT_EQ(false, utf8::is_single(*(multi_byte + 1)));
 
34
  ASSERT_FALSE(utf8::is_single(*multi_byte));
 
35
  ASSERT_FALSE(utf8::is_single(*(multi_byte + 1)));
36
36
}
37
37
 
38
38
TEST(utf8, codepoint_length)