Blame localedata/tests-mbwc/dat_wcschr.c

Packit 6c4009
/*
Packit 6c4009
 *  TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
Packit 6c4009
 *
Packit 6c4009
 *	 FILE:	dat_wcschr.c
Packit 6c4009
 *
Packit 6c4009
 *	 WCSCHR:  wchar_t  *wcschr (const wchar_t *ws, wchar_t wc);
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
TST_WCSCHR tst_wcschr_loc [] = {
Packit 6c4009
Packit 6c4009
    {	{ Twcschr, TST_LOC_de },
Packit 6c4009
	{
Packit 6c4009
	  { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C0 },  /* #1 */
Packit 6c4009
	    /*expect*/ { 0,1,(wchar_t *)NULL },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C1 },  /* #2 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C2 },  /* #3 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C3 },  /* #4 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x0000 },  /* #5 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x0000,0x00C2,0x00C3,0x0000 }, 0x00C1 },  /* #6 */
Packit 6c4009
	    /*expect*/ { 0,1,(wchar_t *)NULL },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x0000,0x00C2,0x00C3,0x0000 }, 0x0000 },  /* #7 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { .is_last = 1 }
Packit 6c4009
	}
Packit 6c4009
    },
Packit 6c4009
    {	{ Twcschr, TST_LOC_enUS },
Packit 6c4009
	{
Packit 6c4009
	  { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0040 },  /* #1 */
Packit 6c4009
	    /*expect*/ { 0,1,(wchar_t *)NULL },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0041 },  /* #2 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0042 },  /* #3 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0043 },  /* #4 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0000 },  /* #5 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 }, 0x0041 },  /* #6 */
Packit 6c4009
	    /*expect*/ { 0,1,(wchar_t *)NULL },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 }, 0x0000 },  /* #7 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { .is_last = 1 }
Packit 6c4009
	}
Packit 6c4009
    },
Packit 6c4009
    {	{ Twcschr, TST_LOC_eucJP },
Packit 6c4009
	{
Packit 6c4009
	  { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3040 },  /* #1 */
Packit 6c4009
	    /*expect*/ { 0,1,(wchar_t *)NULL },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3041 },  /* #2 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3042 },  /* #3 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3043 },  /* #4 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x0000 },  /* #5 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 }, 0x3041 },  /* #6 */
Packit 6c4009
	    /*expect*/ { 0,1,(wchar_t *)NULL },
Packit 6c4009
	  },
Packit 6c4009
	  { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 }, 0x0000 },  /* #7 */
Packit 6c4009
	    /*expect*/ { 0,0,0 },
Packit 6c4009
	  },
Packit 6c4009
	  { .is_last = 1 }
Packit 6c4009
	}
Packit 6c4009
    },
Packit 6c4009
    {	{ Twcschr, TST_LOC_end } }
Packit 6c4009
};