| ... | ... | @@ -423,16 +423,16 @@ test "zig fmt: sentinel slice with modifiers" { |
| 423 | 423 | ); |
| 424 | 424 | } |
| 425 | 425 | |
| 426 | | //test "zig fmt: anon literal in array" { |
| 427 | | // try testCanonical( |
| 428 | | // \\var arr: [2]Foo = .{ |
| 429 | | // \\ .{ .a = 2 }, |
| 430 | | // \\ .{ .b = 3 }, |
| 431 | | // \\}; |
| 432 | | // \\ |
| 433 | | // ); |
| 434 | | //} |
| 435 | | // |
| 426 | test "zig fmt: anon literal in array" { |
| 427 | try testCanonical( |
| 428 | \\var arr: [2]Foo = .{ |
| 429 | \\ .{ .a = 2 }, |
| 430 | \\ .{ .b = 3 }, |
| 431 | \\}; |
| 432 | \\ |
| 433 | ); |
| 434 | } |
| 435 | |
| 436 | 436 | //test "zig fmt: alignment in anonymous literal" { |
| 437 | 437 | // try testTransform( |
| 438 | 438 | // \\const a = .{ |
| ... | ... | @@ -751,12 +751,12 @@ test "zig fmt: tagged union with enum values" { |
| 751 | 751 | ); |
| 752 | 752 | } |
| 753 | 753 | |
| 754 | | //test "zig fmt: allowzero pointer" { |
| 755 | | // try testCanonical( |
| 756 | | // \\const T = [*]allowzero const u8; |
| 757 | | // \\ |
| 758 | | // ); |
| 759 | | //} |
| 754 | test "zig fmt: allowzero pointer" { |
| 755 | try testCanonical( |
| 756 | \\const T = [*]allowzero const u8; |
| 757 | \\ |
| 758 | ); |
| 759 | } |
| 760 | 760 | |
| 761 | 761 | test "zig fmt: enum literal" { |
| 762 | 762 | try testCanonical( |
| ... | ... | @@ -806,13 +806,13 @@ test "zig fmt: character literal larger than u8" { |
| 806 | 806 | // \\ |
| 807 | 807 | // ); |
| 808 | 808 | //} |
| 809 | | // |
| 810 | | //test "zig fmt: C pointers" { |
| 811 | | // try testCanonical( |
| 812 | | // \\const Ptr = [*c]i32; |
| 813 | | // \\ |
| 814 | | // ); |
| 815 | | //} |
| 809 | |
| 810 | test "zig fmt: C pointers" { |
| 811 | try testCanonical( |
| 812 | \\const Ptr = [*c]i32; |
| 813 | \\ |
| 814 | ); |
| 815 | } |
| 816 | 816 | |
| 817 | 817 | test "zig fmt: threadlocal" { |
| 818 | 818 | try testCanonical( |