Alexandre Julliard : msvcrt/tests: Add tests for Unicode spaces in wcstol().
Alexandre Julliard
julliard at winehq.org
Wed Mar 11 17:38:30 CDT 2020
Module: wine
Branch: master
Commit: bf48e86add972345d958b4949eeaaf77715bf4a5
URL: https://source.winehq.org/git/wine.git/?a=commit;h=bf48e86add972345d958b4949eeaaf77715bf4a5
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Mar 11 09:28:59 2020 +0100
msvcrt/tests: Add tests for Unicode spaces in wcstol().
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcrt/tests/string.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c
index 29a8958b81..05aa747f84 100644
--- a/dlls/msvcrt/tests/string.c
+++ b/dlls/msvcrt/tests/string.c
@@ -3307,6 +3307,8 @@ static void test__wcstoi64(void)
{ L"9", 9, 9, 10 },
{ L" ", 0, 0 },
{ L"-1234", -1234, -1234 },
+ { L"\x09\x0a\x0b\x0c\x0d -123", -123, -123 },
+ { L"\xa0\x2002\x2003\x2028\x3000 +44", 44, 44 },
{ { 0x3231 }, 0, 0 }, /* PARENTHESIZED IDEOGRAPH STOCK */
{ { 0x4e00 }, 0, 0 }, /* CJK Ideograph, First */
{ { 0x0bef }, 0, 0 }, /* TAMIL DIGIT NINE */
@@ -3373,6 +3375,8 @@ static void test__wcstol(void)
{ L"9", 9, 9, 10 },
{ L" ", 0, 0 },
{ L"-1234", -1234, -1234 },
+ { L"\x09\x0a\x0b\x0c\x0d -123", -123, -123 },
+ { L"\xa0\x2002\x2003\x2028\x3000 +44", 44, 44 },
{ { 0x3231 }, 0, 0 }, /* PARENTHESIZED IDEOGRAPH STOCK */
{ { 0x4e00 }, 0, 0 }, /* CJK Ideograph, First */
{ { 0x0bef }, 0, 0 }, /* TAMIL DIGIT NINE */
More information about the wine-cvs
mailing list