~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/utf8_test.cc

  • Committer: Brian Aker
  • Date: 2010-09-22 22:29:55 UTC
  • mto: (1787.3.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1789.
  • Revision ID: brian@tangent.org-20100922222955-cg1bddv4b72jwe31
Fix enum at being an intefer (which is what PG did, and it saves on
alignment issues).

Show diffs side-by-side

added added

removed removed

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