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:
11
DEVELOPER
11
DEVELOPER
@@ -179,18 +179,15 @@ Work in Progress
|
|||||||
Current Codebase Condition
|
Current Codebase Condition
|
||||||
|
|
||||||
'master' branch:
|
'master' branch:
|
||||||
- 2.1.2 release, current, locked.
|
- 2.2.0 Current release, locked.
|
||||||
|
|
||||||
'2.1.2' branch:
|
|
||||||
- Current release. Locked.
|
|
||||||
|
|
||||||
'2.2.0' branch:
|
'2.2.0' branch:
|
||||||
- Currently in beta.
|
- Current release. Locked.
|
||||||
|
|
||||||
'2.3.0' branch:
|
'2.3.0' branch:
|
||||||
- Future release with sync features, and new tasksh.
|
- Current development branch with sync features, and new tasksh.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
2012-05-12 Added general statement about how to contribute.
|
2012-05-12 Added general statement about how to contribute.
|
||||||
2013-03-04 Updated branch inco.
|
2013-03-31 Updated branch info.
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
int main (int argc, char** argv)
|
int main (int argc, char** argv)
|
||||||
{
|
{
|
||||||
UnitTest t (15);
|
UnitTest t (17);
|
||||||
|
|
||||||
std::string ascii_text = "This is a test";
|
std::string ascii_text = "This is a test";
|
||||||
std::string utf8_text = "más sábado miércoles";
|
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 [1msábado[0m miércoles";
|
std::string utf8_text_color = "más [1msábado[0m miércoles";
|
||||||
std::string utf8_wide_text_color = "改[1m变各种[0m颜色";
|
std::string utf8_wide_text_color = "改[1m变各种[0m颜色";
|
||||||
|
|
||||||
// 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 unsigned int utf8_next_char (const std::string&, std::string::size_type&);
|
||||||
// TODO std::string utf8_character (unsigned int);
|
// TODO std::string utf8_character (unsigned int);
|
||||||
// TODO int utf8_sequence (unsigned int);
|
// TODO int utf8_sequence (unsigned int);
|
||||||
|
|||||||
Reference in New Issue
Block a user