| ... | @@ -2284,6 +2284,10 @@ test "float.hexadecimal.precision" { | ... | @@ -2284,6 +2284,10 @@ test "float.hexadecimal.precision" { |
| 2284 | } | 2284 | } |
| 2285 | | 2285 | |
| 2286 | test "float.decimal" { | 2286 | test "float.decimal" { |
| | 2287 | if (builtin.zig_backend == .stage1 and builtin.os.tag == .windows) { |
| | 2288 | // https://github.com/ziglang/zig/issues/12063 |
| | 2289 | return error.SkipZigTest; |
| | 2290 | } |
| 2287 | try expectFmt("f64: 152314000000000000000000000000", "f64: {d}", .{@as(f64, 1.52314e+29)}); | 2291 | try expectFmt("f64: 152314000000000000000000000000", "f64: {d}", .{@as(f64, 1.52314e+29)}); |
| 2288 | try expectFmt("f32: 0", "f32: {d}", .{@as(f32, 0.0)}); | 2292 | try expectFmt("f32: 0", "f32: {d}", .{@as(f32, 0.0)}); |
| 2289 | try expectFmt("f32: 0", "f32: {d:.0}", .{@as(f32, 0.0)}); | 2293 | try expectFmt("f32: 0", "f32: {d:.0}", .{@as(f32, 0.0)}); |