mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
enable std.format tests on 64 bit platforms, disabling just the two failing tests instead
This commit is contained in:
parent
10a2872229
commit
ea27e2bcd6
2 changed files with 12 additions and 7 deletions
|
@ -252,9 +252,6 @@ libphobos2.a : generated/osx/release/32/libphobos2.a generated/osx/release/64/li
|
|||
endif
|
||||
|
||||
ifeq ($(MODEL),64)
|
||||
DISABLED_TESTS += std/format
|
||||
# Still not passing, time to pull out the next issue.
|
||||
|
||||
DISABLED_TESTS += std/math
|
||||
# seems to infinite loop, need to reduce
|
||||
|
||||
|
|
|
@ -4367,12 +4367,20 @@ unittest
|
|||
s = std.string.format("%d %s", 0x1234AF, 0xAFAFAFAF);
|
||||
assert(s == "1193135 2947526575");
|
||||
|
||||
version(X86_64)
|
||||
{
|
||||
pragma(msg, "several format tests disabled on x86_64 due to bug 5625");
|
||||
}
|
||||
else
|
||||
{
|
||||
s = std.string.format("%s", 1.2 + 3.4i);
|
||||
assert(s == "1.2+3.4i");
|
||||
|
||||
s = std.string.format("%x %X", 1.32, 6.78f);
|
||||
assert(s == "3ff51eb851eb851f 40D8F5C3");
|
||||
|
||||
}
|
||||
|
||||
s = std.string.format("%#06.*f",2,12.345);
|
||||
assert(s == "012.35");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue