Skip to content

Commit

Permalink
disable regressed float formatting test case
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk authored and wooster0 committed Jul 24, 2022
1 parent 135c43f commit a8679fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/std/fmt.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2284,6 +2284,10 @@ test "float.hexadecimal.precision" {
}

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("f32: 0", "f32: {d}", .{@as(f32, 0.0)});
try expectFmt("f32: 0", "f32: {d:.0}", .{@as(f32, 0.0)});
Expand Down

0 comments on commit a8679fe

Please sign in to comment.