Skip to content

Commit d8c4f7d

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

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)