authorgravatar for snoire@qq.comsnoire <snoire@qq.com> 2025-11-06 13:44:53+08:00
committergravatar for snoire@qq.comsnoire <snoire@qq.com> 2025-11-06 13:45:21+08:00
logb4b54b597d59b709b7d801db55c7705c8e950d4e
tree4a78affa3c45c3241c1bf05404e9b35d9d496cab
parentffb0050d811ba7c79d7781cc908a499e4c95d4e3

test: add test case for enum-literal with '{t}' format

Co-authored-by: Ryan Liptak <squeek502@hotmail.com>

1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/fmt.zig+1
...@@ -1249,6 +1249,7 @@ test "vector" {...@@ -1249,6 +1249,7 @@ test "vector" {
12491249
1250test "enum-literal" {1250test "enum-literal" {
1251 try expectFmt(".hello_world", "{}", .{.hello_world});1251 try expectFmt(".hello_world", "{}", .{.hello_world});
1252 try expectFmt("hello_world", "{t}", .{.hello_world});
1252}1253}
12531254
1254test "padding" {1255test "padding" {