mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Fixed issue with use of binary constants with C++11 in etl::format tests
This commit is contained in:
parent
c798bd337b
commit
96e3229933
@ -473,11 +473,13 @@ namespace
|
||||
CHECK_EQUAL("0X3F4", test_format(s, "{:#X}", 0x3f4));
|
||||
CHECK_EQUAL("34", test_format(s, "{:o}", 034));
|
||||
CHECK_EQUAL("034", test_format(s, "{:#o}", 034));
|
||||
#if ETL_USING_CPP14
|
||||
CHECK_EQUAL("1010", test_format(s, "{:b}", 0b1010));
|
||||
CHECK_EQUAL("0b1010", test_format(s, "{:#b}", 0b1010));
|
||||
CHECK_EQUAL("1010", test_format(s, "{:B}", 0b1010));
|
||||
CHECK_EQUAL("0B1010", test_format(s, "{:#B}", 0b1010));
|
||||
CHECK_EQUAL("-0B1010", test_format(s, "{:#B}", -0b1010));
|
||||
#endif
|
||||
CHECK_EQUAL("C", test_format(s, "{:c}", 67));
|
||||
CHECK_EQUAL("00067", test_format(s, "{:05d}", 67));
|
||||
CHECK_EQUAL("+00067", test_format(s, "{:+05d}", 67));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user