35
35
36
36
#include " platform_support.h" // locale name macros
37
37
38
- // TODO:
39
- // Some of the assertions in this test are failing on Apple platforms.
40
- // Until we figure out the problem and fix it, disable these tests on
41
- // Apple platforms. Note that we're not using XFAIL or UNSUPPORTED markup
42
- // here, because this test would otherwise be disabled on all platforms
43
- // we test. To avoid this test becoming entirely stale, we just disable
44
- // the parts that fail.
45
- //
46
- // See https://llvm.org/PR45739 for the bug tracking this.
47
- #if defined(__APPLE__)
48
- # define APPLE_FIXME
49
- #endif
50
-
51
38
typedef std::money_get<char , cpp17_input_iterator<const char *> > Fn;
52
39
53
40
class my_facet
@@ -228,7 +215,7 @@ int main(int, char**)
228
215
std::noshowbase (ios);
229
216
}
230
217
{ // negative, showbase
231
- std::string v = " -1 234 567,89 RUB " ;
218
+ std::string v = " -1 234 567,89 RUB" ;
232
219
std::showbase (ios);
233
220
typedef cpp17_input_iterator<const char *> I;
234
221
long double ex;
@@ -240,7 +227,7 @@ int main(int, char**)
240
227
std::noshowbase (ios);
241
228
}
242
229
{ // negative, showbase
243
- std::string v = " -1 234 567,89 RUB " ;
230
+ std::string v = " -1 234 567,89 RUB" ;
244
231
typedef cpp17_input_iterator<const char *> I;
245
232
long double ex;
246
233
std::ios_base::iostate err = std::ios_base::goodbit;
@@ -310,7 +297,7 @@ int main(int, char**)
310
297
assert (ex == -123456789 );
311
298
}
312
299
{ // zero, showbase
313
- std::string v = " 0,00 RUB " ;
300
+ std::string v = " 0,00 RUB" ;
314
301
typedef cpp17_input_iterator<const char *> I;
315
302
long double ex;
316
303
std::ios_base::iostate err = std::ios_base::goodbit;
@@ -320,9 +307,8 @@ int main(int, char**)
320
307
assert (err == std::ios_base::goodbit);
321
308
assert (ex == 0 );
322
309
}
323
- #if !defined(APPLE_FIXME)
324
310
{ // zero, showbase
325
- std::string v = " 0,00 RUB " ;
311
+ std::string v = " 0,00 RUB" ;
326
312
std::showbase (ios);
327
313
typedef cpp17_input_iterator<const char *> I;
328
314
long double ex;
@@ -334,9 +320,8 @@ int main(int, char**)
334
320
assert (ex == 0 );
335
321
std::noshowbase (ios);
336
322
}
337
- #endif
338
323
{ // negative one, showbase
339
- std::string v = " -0,01 RUB " ;
324
+ std::string v = " -0,01 RUB" ;
340
325
typedef cpp17_input_iterator<const char *> I;
341
326
long double ex;
342
327
std::ios_base::iostate err = std::ios_base::goodbit;
@@ -346,9 +331,8 @@ int main(int, char**)
346
331
assert (err == std::ios_base::goodbit);
347
332
assert (ex == -1 );
348
333
}
349
- #if !defined(APPLE_FIXME)
350
334
{ // negative one, showbase
351
- std::string v = " -0,01 RUB " ;
335
+ std::string v = " -0,01 RUB" ;
352
336
std::showbase (ios);
353
337
typedef cpp17_input_iterator<const char *> I;
354
338
long double ex;
@@ -360,9 +344,8 @@ int main(int, char**)
360
344
assert (ex == -1 );
361
345
std::noshowbase (ios);
362
346
}
363
- #endif
364
347
{ // positive, showbase
365
- std::string v = " 1 234 567,89 RUB " ;
348
+ std::string v = " 1 234 567,89 RUB" ;
366
349
typedef cpp17_input_iterator<const char *> I;
367
350
long double ex;
368
351
std::ios_base::iostate err = std::ios_base::goodbit;
@@ -372,9 +355,8 @@ int main(int, char**)
372
355
assert (err == std::ios_base::goodbit);
373
356
assert (ex == 123456789 );
374
357
}
375
- #if !defined(APPLE_FIXME)
376
358
{ // positive, showbase
377
- std::string v = " 1 234 567,89 RUB " ;
359
+ std::string v = " 1 234 567,89 RUB" ;
378
360
std::showbase (ios);
379
361
typedef cpp17_input_iterator<const char *> I;
380
362
long double ex;
@@ -386,10 +368,8 @@ int main(int, char**)
386
368
assert (ex == 123456789 );
387
369
std::noshowbase (ios);
388
370
}
389
- #endif
390
- #if !defined(APPLE_FIXME)
391
371
{ // negative, showbase
392
- std::string v = " -1 234 567,89 RUB " ;
372
+ std::string v = " -1 234 567,89 RUB" ;
393
373
std::showbase (ios);
394
374
typedef cpp17_input_iterator<const char *> I;
395
375
long double ex;
@@ -401,7 +381,6 @@ int main(int, char**)
401
381
assert (ex == -123456789 );
402
382
std::noshowbase (ios);
403
383
}
404
- #endif
405
384
{ // negative, showbase
406
385
std::string v = " -1 234 567,89 \xD1\x80\xD1\x83\xD0\xB1 " " ." ;
407
386
std::showbase (ios);
@@ -571,7 +550,7 @@ int main(int, char**)
571
550
std::noshowbase (ios);
572
551
}
573
552
{ // negative, showbase
574
- std::wstring v = L" -1 234 567,89 RUB " ;
553
+ std::wstring v = L" -1 234 567,89 RUB" ;
575
554
std::showbase (ios);
576
555
typedef cpp17_input_iterator<const wchar_t *> I;
577
556
long double ex;
@@ -583,7 +562,7 @@ int main(int, char**)
583
562
std::noshowbase (ios);
584
563
}
585
564
{ // negative, showbase
586
- std::wstring v = L" -1 234 567,89 RUB " ;
565
+ std::wstring v = L" -1 234 567,89 RUB" ;
587
566
typedef cpp17_input_iterator<const wchar_t *> I;
588
567
long double ex;
589
568
std::ios_base::iostate err = std::ios_base::goodbit;
@@ -653,7 +632,7 @@ int main(int, char**)
653
632
assert (ex == -123456789 );
654
633
}
655
634
{ // zero, showbase
656
- std::wstring v = L" 0,00 RUB " ;
635
+ std::wstring v = L" 0,00 RUB" ;
657
636
typedef cpp17_input_iterator<const wchar_t *> I;
658
637
long double ex;
659
638
std::ios_base::iostate err = std::ios_base::goodbit;
@@ -663,9 +642,8 @@ int main(int, char**)
663
642
assert (err == std::ios_base::goodbit);
664
643
assert (ex == 0 );
665
644
}
666
- #if !defined(APPLE_FIXME)
667
645
{ // zero, showbase
668
- std::wstring v = L" 0,00 RUB " ;
646
+ std::wstring v = L" 0,00 RUB" ;
669
647
std::showbase (ios);
670
648
typedef cpp17_input_iterator<const wchar_t *> I;
671
649
long double ex;
@@ -677,9 +655,8 @@ int main(int, char**)
677
655
assert (ex == 0 );
678
656
std::noshowbase (ios);
679
657
}
680
- #endif
681
658
{ // negative one, showbase
682
- std::wstring v = L" -0,01 RUB " ;
659
+ std::wstring v = L" -0,01 RUB" ;
683
660
typedef cpp17_input_iterator<const wchar_t *> I;
684
661
long double ex;
685
662
std::ios_base::iostate err = std::ios_base::goodbit;
@@ -689,9 +666,8 @@ int main(int, char**)
689
666
assert (err == std::ios_base::goodbit);
690
667
assert (ex == -1 );
691
668
}
692
- #if !defined(APPLE_FIXME)
693
669
{ // negative one, showbase
694
- std::wstring v = L" -0,01 RUB " ;
670
+ std::wstring v = L" -0,01 RUB" ;
695
671
std::showbase (ios);
696
672
typedef cpp17_input_iterator<const wchar_t *> I;
697
673
long double ex;
@@ -703,9 +679,8 @@ int main(int, char**)
703
679
assert (ex == -1 );
704
680
std::noshowbase (ios);
705
681
}
706
- #endif
707
682
{ // positive, showbase
708
- std::wstring v = L" 1 234 567,89 RUB " ;
683
+ std::wstring v = L" 1 234 567,89 RUB" ;
709
684
typedef cpp17_input_iterator<const wchar_t *> I;
710
685
long double ex;
711
686
std::ios_base::iostate err = std::ios_base::goodbit;
@@ -715,9 +690,8 @@ int main(int, char**)
715
690
assert (err == std::ios_base::goodbit);
716
691
assert (ex == 123456789 );
717
692
}
718
- #if !defined(APPLE_FIXME)
719
693
{ // positive, showbase
720
- std::wstring v = L" 1 234 567,89 RUB " ;
694
+ std::wstring v = L" 1 234 567,89 RUB" ;
721
695
std::showbase (ios);
722
696
typedef cpp17_input_iterator<const wchar_t *> I;
723
697
long double ex;
@@ -729,10 +703,8 @@ int main(int, char**)
729
703
assert (ex == 123456789 );
730
704
std::noshowbase (ios);
731
705
}
732
- #endif
733
- #if !defined(APPLE_FIXME)
734
706
{ // negative, showbase
735
- std::wstring v = L" -1 234 567,89 RUB " ;
707
+ std::wstring v = L" -1 234 567,89 RUB" ;
736
708
std::showbase (ios);
737
709
typedef cpp17_input_iterator<const wchar_t *> I;
738
710
long double ex;
@@ -744,7 +716,6 @@ int main(int, char**)
744
716
assert (ex == -123456789 );
745
717
std::noshowbase (ios);
746
718
}
747
- #endif
748
719
{ // negative, showbase
749
720
std::wstring v = L" -1 234 567,89 \x440\x443\x431 " " ." ;
750
721
std::showbase (ios);
0 commit comments