dat_wcstod.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
  3. *
  4. * FILE: dat_wcstod.c
  5. *
  6. * WCSTOD: double wcstod (const wchar_t *np, wchar_t **endp);
  7. */
  8. /*
  9. * NOTE:
  10. * need more test data!
  11. *
  12. */
  13. TST_WCSTOD tst_wcstod_loc [] = {
  14. {
  15. { Twcstod, TST_LOC_de },
  16. {
  17. {
  18. /*01*/
  19. /*I*/
  20. {{ 0x0030,0x0030,0x0030,0x002C,0x0030,0x0030,0x0030,0x0030,0x0000 }},
  21. /*E*/
  22. { 0,1,0.0, 0.0, 0x0000 }
  23. },
  24. {
  25. /*02*/
  26. /*I*/
  27. {{ 0x0031,0x0032,0x0033,0x002C,0x0034,0x0035,0x0036,0x0040,0x0000 }},
  28. /*E*/
  29. { 0,1,123.456, 123.456, 0x0040 }
  30. },
  31. { .is_last = 1 }
  32. }
  33. },
  34. {
  35. { Twcstod, TST_LOC_enUS },
  36. {
  37. {
  38. /*01*/
  39. /*I*/
  40. {{ 0x0030,0x0030,0x0030,0x002E,0x0030,0x0030,0x0030,0x0030,0x0000 }},
  41. /*E*/
  42. { 0,1,0.0, 0.0, 0x0000 }
  43. },
  44. {
  45. /*02*/
  46. /*I*/
  47. {{ 0x0031,0x0032,0x0033,0x002E,0x0034,0x0035,0x0036,0x0040,0x0000 }},
  48. /*E*/
  49. { 0,1,123.456, 123.456, 0x0040 }
  50. },
  51. { .is_last = 1 }
  52. }
  53. },
  54. {
  55. #if 0
  56. { Twcstod, TST_LOC_eucJP },
  57. #else
  58. { Twcstod, TST_LOC_ja_UTF8 },
  59. #endif
  60. {
  61. {
  62. /*01*/
  63. /*I*/
  64. {{ 0x0031,0x0032,0x0033,0x002E,0x0034,0x0035,0x0036,0x0040,0x0000 }},
  65. /*E*/
  66. { 0,1,123.456, 123.456, 0x0040 }
  67. },
  68. { .is_last = 1 }
  69. }
  70. },
  71. {
  72. { Twcstod, TST_LOC_end }
  73. }
  74. };