Author: dchapyshev
Date: Sun Aug 28 10:42:32 2016
New Revision: 72484
URL:
http://svn.reactos.org/svn/reactos?rev=72484&view=rev
Log:
[ADVAPI32_APITEST]
- Add tests for IS_TEXT_UNICODE_ILLEGAL_CHARS flag (not passed on ReactOS)
Modified:
trunk/rostests/apitests/advapi32/IsTextUnicode.c
Modified: trunk/rostests/apitests/advapi32/IsTextUnicode.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/advapi32/IsTextU…
==============================================================================
--- trunk/rostests/apitests/advapi32/IsTextUnicode.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/advapi32/IsTextUnicode.c [iso-8859-1] Sun Aug 28 10:42:32
2016
@@ -79,6 +79,16 @@
NEW_TEST(L"\xFFFE" L"UNICODE String 5 ÐÑивеÑ!",
IS_TEXT_UNICODE_UNICODE_MASK, IS_TEXT_UNICODE_CONTROLS, TRUE),
NEW_TEST(L"\xFFFE" L"UNICODE String 5 ÐÑивеÑ!",
IS_TEXT_UNICODE_STATISTICS, 0, FALSE),
NEW_TEST(L"\xFFFE" L"UNICODE String 5 ÐÑивеÑ!",
INVALID_FLAG, 0, FALSE),
+
+ // 28
+ /* Reverse BOM */
+ NEW_TEST(L"UNICODE S" L"\xFFFE" L"tring 5
ÐÑивеÑ!", IS_TEXT_UNICODE_ILLEGAL_CHARS, IS_TEXT_UNICODE_ILLEGAL_CHARS,
FALSE),
+ /* UNICODE_NUL */
+ NEW_TEST(L"UNICODE S" L"\x0000" L"tring 5
ÐÑивеÑ!", IS_TEXT_UNICODE_ILLEGAL_CHARS, IS_TEXT_UNICODE_ILLEGAL_CHARS,
FALSE),
+ /* ASCII CRLF (packed into one word) */
+ NEW_TEST(L"UNICODE S" L"\x0A0D" L"tring 5
ÐÑивеÑ!", IS_TEXT_UNICODE_ILLEGAL_CHARS, IS_TEXT_UNICODE_ILLEGAL_CHARS,
FALSE),
+ /* Unicode 0xFFFF */
+ NEW_TEST(L"UNICODE S" L"\xFFFF" L"tring 5
ÐÑивеÑ!", IS_TEXT_UNICODE_ILLEGAL_CHARS, IS_TEXT_UNICODE_ILLEGAL_CHARS,
FALSE),
};
UINT i;