mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 06:43:07 +00:00
parent
4d10fbef10
commit
321fec1aa6
@ -2284,6 +2284,10 @@ test "float.hexadecimal.precision" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "float.decimal" {
|
test "float.decimal" {
|
||||||
|
if (builtin.zig_backend == .stage1 and builtin.os.tag == .windows) {
|
||||||
|
// https://github.com/ziglang/zig/issues/12063
|
||||||
|
return error.SkipZigTest;
|
||||||
|
}
|
||||||
try expectFmt("f64: 152314000000000000000000000000", "f64: {d}", .{@as(f64, 1.52314e+29)});
|
try expectFmt("f64: 152314000000000000000000000000", "f64: {d}", .{@as(f64, 1.52314e+29)});
|
||||||
try expectFmt("f32: 0", "f32: {d}", .{@as(f32, 0.0)});
|
try expectFmt("f32: 0", "f32: {d}", .{@as(f32, 0.0)});
|
||||||
try expectFmt("f32: 0", "f32: {d:.0}", .{@as(f32, 0.0)});
|
try expectFmt("f32: 0", "f32: {d:.0}", .{@as(f32, 0.0)});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user