From b4b54b597d59b709b7d801db55c7705c8e950d4e Mon Sep 17 00:00:00 2001 From: snoire Date: Thu, 6 Nov 2025 13:44:53 +0800 Subject: [PATCH] test: add test case for enum-literal with '{t}' format Co-authored-by: Ryan Liptak --- lib/std/fmt.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig index 9a705a4397..2dc7e13855 100644 --- a/lib/std/fmt.zig +++ b/lib/std/fmt.zig @@ -1249,6 +1249,7 @@ test "vector" { test "enum-literal" { try expectFmt(".hello_world", "{}", .{.hello_world}); + try expectFmt("hello_world", "{t}", .{.hello_world}); } test "padding" {