commit b4b54b597d59b709b7d801db55c7705c8e950d4e (tree)
parent ffb0050d811ba7c79d7781cc908a499e4c95d4e3
Author: snoire <snoire@qq.com>
Date: Thu, 6 Nov 2025 13:44:53 +0800
test: add test case for enum-literal with '{t}' format
Co-authored-by: Ryan Liptak <squeek502@hotmail.com>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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" {