Commit b4b54b597d

snoire <snoire@qq.com>
2025-11-06 06:44:53
test: add test case for enum-literal with '{t}' format
Co-authored-by: Ryan Liptak <squeek502@hotmail.com>
1 parent ffb0050
Changed files (1)
lib
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" {