about summary refs log tree commit diff
path: root/localedata/tests-mbwc/dat_towupper.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-06-27 15:53:49 +0000
committerAndreas Jaeger <aj@suse.de>2000-06-27 15:53:49 +0000
commit22827fb10b7963e873025416a601c185ee6dade5 (patch)
tree430d62380f6b38d289d402fb91e6617cc0717875 /localedata/tests-mbwc/dat_towupper.c
parentcb6815da362a320f2bc9a2d0e0bd95ca354ff380 (diff)
downloadglibc-22827fb10b7963e873025416a601c185ee6dade5.tar.gz
glibc-22827fb10b7963e873025416a601c185ee6dade5.tar.xz
glibc-22827fb10b7963e873025416a601c185ee6dade5.zip
Add new files to tests and add environment for them.
Diffstat (limited to 'localedata/tests-mbwc/dat_towupper.c')
-rw-r--r--localedata/tests-mbwc/dat_towupper.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/localedata/tests-mbwc/dat_towupper.c b/localedata/tests-mbwc/dat_towupper.c
new file mode 100644
index 0000000000..74e9dfbdb4
--- /dev/null
+++ b/localedata/tests-mbwc/dat_towupper.c
@@ -0,0 +1,43 @@
+/*
+ *  TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
+ *
+ *	 FILE:	dat_towupper.c
+ *
+ *	 ISW*:	int towupper (wint_t wc);
+ */
+
+
+#include "dat_tow-funcs.h"
+
+
+TST_TOW_LOC (UPPER, upper) = {
+
+  {   TST_TOW_REC (de, upper)
+      {
+	{  { WEOF   }, { 0,0,  1, (wint_t)-1 }	},
+	{  { 0x0080 }, { 0,0,  1, 0x0080     }	},
+	{  { 0x00EC }, { 0,0,  1, 0x00CC     }	},
+	{  { 0x00CC }, { 0,0,  1, 0x00CC     }	},
+	{ is_last: 1 } /* Last element.	 */
+      }
+  },
+  {   TST_TOW_REC (enUS, upper)
+      {
+	{  { WEOF   }, { 0,0,  1, (wint_t)-1 }	},
+	{  { 0x0080 }, { 0,0,  1, 0x0080     }	},
+	{  { 0x0041 }, { 0,0,  1, 0x0041     }	},
+	{  { 0x0061 }, { 0,0,  1, 0x0041     }	},
+	{ is_last: 1 } /* Last element.	 */
+      }
+  },
+  {   TST_TOW_REC (eucJP, upper)
+      {
+	{  { WEOF   }, { 0,0,  1, (wint_t)-1 }	},
+	{  { 0x007F }, { 0,0,  1, 0x007F     }	},
+	{  { 0xFF41 }, { 0,0,  1, 0xFF21     }	},
+	{  { 0xFF21 }, { 0,0,  1, 0xFF21     }	},
+	{ is_last: 1 } /* Last element.	 */
+      }
+  },
+  {   TST_TOW_REC (end, upper) }
+};