Skip to content

Commit b4b54b5

Browse files
snoiresqueek502
andcommitted
test: add test case for enum-literal with '{t}' format
Co-authored-by: Ryan Liptak <squeek502@hotmail.com>
1 parent ffb0050 commit b4b54b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/std/fmt.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,7 @@ test "vector" {
12491249

12501250
test "enum-literal" {
12511251
try expectFmt(".hello_world", "{}", .{.hello_world});
1252+
try expectFmt("hello_world", "{t}", .{.hello_world});
12521253
}
12531254

12541255
test "padding" {

0 commit comments

Comments
 (0)