Doc, Unit Tests

- Updated DEVELOPER file to be accurate once 2.2.0 is released.
- Added unit test for utf8_codepoint.  The tests have been siting there for a
  while, and may as well be committed.  Low risk.
This commit is contained in:
Paul Beckingham 2013-03-31 17:30:43 -04:00
parent baeee7566d
commit 6824fb1527
2 changed files with 9 additions and 9 deletions

View file

@ -32,7 +32,7 @@
////////////////////////////////////////////////////////////////////////////////
int main (int argc, char** argv)
{
UnitTest t (15);
UnitTest t (17);
std::string ascii_text = "This is a test";
std::string utf8_text = "más sábado miércoles";
@ -42,7 +42,10 @@ int main (int argc, char** argv)
std::string utf8_text_color = "más sábado miércoles";
std::string utf8_wide_text_color = "变各种颜色";
// TODO unsigned int utf8_codepoint (const std::string&);
// unsigned int utf8_codepoint (const std::string&);
t.is ((int) utf8_codepoint ("\\u0020"), 32, "\\u0020 --> ' '");
t.is ((int) utf8_codepoint ("U+0020"), 32, "U+0020 --> ' '");
// TODO unsigned int utf8_next_char (const std::string&, std::string::size_type&);
// TODO std::string utf8_character (unsigned int);
// TODO int utf8_sequence (unsigned int);