Back to index

glibc  2.9
dat_wcstod.c
Go to the documentation of this file.
00001 /*
00002  *  TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
00003  *
00004  *      FILE: dat_wcstod.c
00005  *
00006  *      WCSTOD:  double wcstod (const wchar_t *np, wchar_t **endp);
00007  */
00008 
00009 
00010 /*
00011  *  NOTE:
00012  *       need more test data!
00013  *
00014  */
00015 
00016 
00017 TST_WCSTOD tst_wcstod_loc [] = {
00018   {
00019     { Twcstod, TST_LOC_de },
00020     {
00021       {
00022        /*01*/
00023        /*I*/
00024        {{ 0x0030,0x0030,0x0030,0x002C,0x0030,0x0030,0x0030,0x0030,0x0000 }},
00025        /*E*/
00026        { 0,1,0.0,           0.0,                          0x0000   }
00027       },
00028       {
00029        /*02*/
00030        /*I*/
00031        {{ 0x0031,0x0032,0x0033,0x002C,0x0034,0x0035,0x0036,0x0040,0x0000 }},
00032        /*E*/
00033        { 0,1,123.456,              123.456,                       0x0040  }
00034       },
00035       { .is_last = 1 }
00036     }
00037   },
00038   {
00039     { Twcstod, TST_LOC_enUS },
00040     {
00041       {
00042        /*01*/
00043        /*I*/
00044        {{ 0x0030,0x0030,0x0030,0x002E,0x0030,0x0030,0x0030,0x0030,0x0000 }},
00045        /*E*/
00046        { 0,1,0.0,           0.0,                          0x0000   }
00047       },
00048       {
00049        /*02*/
00050        /*I*/
00051        {{ 0x0031,0x0032,0x0033,0x002E,0x0034,0x0035,0x0036,0x0040,0x0000 }},
00052        /*E*/
00053        { 0,1,123.456,              123.456,                       0x0040  }
00054       },
00055       { .is_last = 1 }
00056     }
00057   },
00058   {
00059     { Twcstod, TST_LOC_eucJP },
00060     {
00061       {
00062        /*01*/
00063        /*I*/
00064        {{ 0x0031,0x0032,0x0033,0x002E,0x0034,0x0035,0x0036,0x0040,0x0000 }},
00065        /*E*/
00066        { 0,1,123.456,              123.456,                       0x0040  }
00067       },
00068       { .is_last = 1 }
00069     }
00070   },
00071   {
00072     { Twcstod, TST_LOC_end }
00073   }
00074 };