aboutsummaryrefslogtreecommitdiff
path: root/lib/std/fmt.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-10-25 23:25:56 +0200
committerGitHub <noreply@github.com>2023-10-25 23:25:56 +0200
commitcc394431ae6eb69e7abd677c268a8ab7299f8aeb (patch)
treed5aa705cdc7d701b53f32a8c2acc099c2dbd90c5 /lib/std/fmt.zig
parent10ea7accf76d4ad59222ea5ff3585d6cc7cfe3b0 (diff)
parented00afbc4c1eec6d599ac277e364b4a1ed11fe5c (diff)
downloadzig-cc394431ae6eb69e7abd677c268a8ab7299f8aeb.tar.gz
zig-cc394431ae6eb69e7abd677c268a8ab7299f8aeb.zip
Merge pull request #17699 from ziglang/elf-better-alloc
elf: allocated PHDR table always immediately succeeding the EHDR
Diffstat (limited to 'lib/std/fmt.zig')
-rw-r--r--lib/std/fmt.zig18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig
index 4b6514557d..1ecee0cf87 100644
--- a/lib/std/fmt.zig
+++ b/lib/std/fmt.zig
@@ -2129,8 +2129,6 @@ test "int.small" {
}
test "int.specifier" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
-
{
const value: u8 = 'a';
try expectFmt("u8: a\n", "u8: {c}\n", .{value});
@@ -2181,8 +2179,6 @@ test "int.padded" {
}
test "buffer" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
-
{
var buf1: [32]u8 = undefined;
var fbs = std.io.fixedBufferStream(&buf1);
@@ -2379,8 +2375,6 @@ test "float.scientific" {
}
test "float.scientific.precision" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
-
try expectFmt("f64: 1.40971e-42", "f64: {e:.5}", .{@as(f64, 1.409706e-42)});
try expectFmt("f64: 1.00000e-09", "f64: {e:.5}", .{@as(f64, @as(f32, @bitCast(@as(u32, 814313563))))});
try expectFmt("f64: 7.81250e-03", "f64: {e:.5}", .{@as(f64, @as(f32, @bitCast(@as(u32, 1006632960))))});
@@ -2457,8 +2451,6 @@ test "float.hexadecimal.precision" {
}
test "float.decimal" {
- if (builtin.zig_backend == .stage2_x86_64) 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)});
@@ -2482,8 +2474,6 @@ test "float.decimal" {
}
test "float.libc.sanity" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
-
try expectFmt("f64: 0.00001", "f64: {d:.5}", .{@as(f64, @as(f32, @bitCast(@as(u32, 916964781))))});
try expectFmt("f64: 0.00001", "f64: {d:.5}", .{@as(f64, @as(f32, @bitCast(@as(u32, 925353389))))});
try expectFmt("f64: 0.10000", "f64: {d:.5}", .{@as(f64, @as(f32, @bitCast(@as(u32, 1036831278))))});
@@ -2503,8 +2493,6 @@ test "float.libc.sanity" {
}
test "custom" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
-
const Vec2 = struct {
const SelfType = @This();
x: f32,
@@ -2683,8 +2671,6 @@ test "formatFloatValue with comptime_float" {
}
test "formatType max_depth" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
-
const Vec2 = struct {
const SelfType = @This();
x: f32,
@@ -2759,14 +2745,10 @@ test "positional" {
}
test "positional with specifier" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
-
try expectFmt("10.0", "{0d:.1}", .{@as(f64, 9.999)});
}
test "positional/alignment/width/precision" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
-
try expectFmt("10.0", "{0d: >3.1}", .{@as(f64, 9.999)});
}