Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/locale adapt mbstowcs_basic test for unicode ...



details:   https://anonhg.NetBSD.org/src/rev/c80c8bc5269f
branches:  trunk
changeset: 372702:c80c8bc5269f
user:      wiz <wiz%NetBSD.org@localhost>
date:      Wed Dec 21 09:33:34 2022 +0000

description:
adapt mbstowcs_basic test for unicode table update

reformat so it's easier to find which result data belongs to which input

diffstat:

 tests/lib/libc/locale/t_mbstowcs.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 920cf41d9557 -r c80c8bc5269f tests/lib/libc/locale/t_mbstowcs.c
--- a/tests/lib/libc/locale/t_mbstowcs.c        Wed Dec 21 09:06:59 2022 +0000
+++ b/tests/lib/libc/locale/t_mbstowcs.c        Wed Dec 21 09:33:34 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mbstowcs.c,v 1.2 2017/07/12 17:32:51 perseant Exp $ */
+/* $NetBSD: t_mbstowcs.c,v 1.3 2022/12/21 09:33:34 wiz Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -55,7 +55,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2011\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_mbstowcs.c,v 1.2 2017/07/12 17:32:51 perseant Exp $");
+__RCSID("$NetBSD: t_mbstowcs.c,v 1.3 2022/12/21 09:33:34 wiz Exp $");
 
 #include <errno.h>
 #include <locale.h>
@@ -89,9 +89,10 @@
                0xFFFF, 0x5D, 0x5B, 0x10000, 0x1FFFFF, 0x5D, 0x5B, 0x200000,
                0x3FFFFFF, 0x5D, 0x5B, 0x4000000, 0x7FFFFFFF, 0x5D, 0x0A
        },
-       {        1, -1, -1,  1,  1, -1, -1,  1,  1, -1, -1,  1,  1, -1, -1,
-                1,  1, -1, -1,  1,  1, -1, -1,  1, -1
-       }, 
+       {        1, -1, -1, 1, 1, -1, 1, 1, 1, 1,
+                -1, 1, 1, 1, -1, 1, 1, -1,
+                -1, 1, 1, -1, -1, 1, -1
+       },
        -1
 }, {
        "ja_JP.ISO2022-JP",



Home | Main Index | Thread Index | Old Index