about summary refs log tree commit diff
path: root/localedata/tests-mbwc/dat_wctob.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-06-27 12:14:09 +0000
committerAndreas Jaeger <aj@suse.de>2000-06-27 12:14:09 +0000
commit5b905722f66719de502ecd6129ef9a1bda4f9f47 (patch)
treee74e131343a6427f807f151abcabcce2c62f94ee /localedata/tests-mbwc/dat_wctob.c
parent756bb30555774e22121790fd6eb3dcf2ca4ed29e (diff)
downloadglibc-5b905722f66719de502ecd6129ef9a1bda4f9f47.tar.gz
glibc-5b905722f66719de502ecd6129ef9a1bda4f9f47.tar.xz
glibc-5b905722f66719de502ecd6129ef9a1bda4f9f47.zip
* Makefile (tests): Add tests from tests-mbwc subdirectory,
comment them out for now. 
(subdir-dirs): New for tests-mbwc, add also vpaths.
	* Makefile (tests): Add tests from tests-mbwc subdirectory,
	comment them out for now.
	(subdir-dirs): New for tests-mbwc, add also vpaths.
Diffstat (limited to 'localedata/tests-mbwc/dat_wctob.c')
-rw-r--r--localedata/tests-mbwc/dat_wctob.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/localedata/tests-mbwc/dat_wctob.c b/localedata/tests-mbwc/dat_wctob.c
new file mode 100644
index 0000000000..9f30aff0ea
--- /dev/null
+++ b/localedata/tests-mbwc/dat_wctob.c
@@ -0,0 +1,46 @@
+/*
+ *  TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
+ *
+ *	 FILE:	dat_wctob.c
+ *
+ *	 ISW*:	int wctob( wint_t wc );
+ */
+
+
+TST_WCTOB tst_wctob_loc [] = {
+
+    {	{ Twctob, TST_LOC_de },
+	{
+	  {  { WEOF   }, { 0,0,	 1, EOF	       }  },
+	  {  { 0x0020 }, { 0,0,	 1, 0x20       }  },
+	  {  { 0x0061 }, { 0,0,	 1, 0x61       }  },
+	  {  { 0x0080 }, { 0,0,	 1, 0x80       }  },
+	  {  { 0x00C4 }, { 0,0,	 1, 0xC4       }  },
+	  {  { 0x30C4 }, { 0,0,	 1, EOF	       }  },
+	  {  is_last: 1 } /* Last element.  */
+	}
+    },
+    {	{ Twctob, TST_LOC_enUS },
+	{
+	  {  { WEOF   }, { 0,0,	 1, EOF	       }  },
+	  {  { 0x0020 }, { 0,0,	 1, 0x20       }  },
+	  {  { 0x0061 }, { 0,0,	 1, 0x61       }  },
+	  {  { 0x0080 }, { 0,0,	 1, 0x80       }  },
+	  {  { 0x00C4 }, { 0,0,	 1, 0xC4       }  },
+	  {  { 0x30C4 }, { 0,0,	 1, EOF	       }  },
+	  {  is_last: 1 } /* Last element.  */
+	}
+    },
+    {	{ Twctob, TST_LOC_eucJP },
+	{
+	  {  { WEOF   }, { 0,0,	 1, EOF	       }  },
+	  {  { 0x0020 }, { 0,0,	 1, 0x20       }  },
+	  {  { 0x0061 }, { 0,0,	 1, 0x61       }  },
+	  {  { 0x0080 }, { 0,0,	 1, 0x80       }  },  /* <WAIVER> */
+	  {  { 0x00C4 }, { 0,0,	 1, EOF	       }  },
+	  {  { 0x30C4 }, { 0,0,	 1, EOF	       }  },
+	  {  is_last: 1 } /* Last element.  */
+	}
+    },
+    {	{ Twctob, TST_LOC_end } }
+};