mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Tests: Added unicodeAlpha
This commit is contained in:
parent
1738b95f7f
commit
7a47f503f8
1 changed files with 8 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int, char**)
|
||||
{
|
||||
UnitTest t (27);
|
||||
UnitTest t (32);
|
||||
|
||||
// White space detection.
|
||||
t.notok (unicodeWhitespace (0x0041), "U+0041 (A) ! unicodeWhitespace");
|
||||
|
@ -62,6 +62,13 @@ int main (int, char**)
|
|||
t.ok (unicodeWhitespace (0x205F), "U+205F unicodeWhitespace");
|
||||
t.ok (unicodeWhitespace (0x3000), "U+3000 unicodeWhitespace");
|
||||
|
||||
// Alpha
|
||||
t.notok (unicodeAlpha (0x0033), "U+0033 (3) ! unicodeAlpha");
|
||||
t.ok (unicodeAlpha (0x0041), "U+0041 (A) unicodeAlpha");
|
||||
t.ok (unicodeAlpha (0x005A), "U+005A (Z) unicodeAlpha");
|
||||
t.ok (unicodeAlpha (0x0061), "U+0061 (a) unicodeAlpha");
|
||||
t.ok (unicodeAlpha (0x007A), "U+007A (z) unicodeAlpha");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue