| ... | @@ -2360,16 +2360,6 @@ test "zig fmt: union declaration" { | ... | @@ -2360,16 +2360,6 @@ test "zig fmt: union declaration" { |
| 2360 | ); | 2360 | ); |
| 2361 | } | 2361 | } |
| 2362 | | 2362 | |
| 2363 | test "zig fmt: container initializers" { | | |
| 2364 | try testCanonical( | | |
| 2365 | \\const a1 = []u8{ }; | | |
| 2366 | \\const a2 = []u8{ 1, 2, 3, 4 }; | | |
| 2367 | \\const s1 = S{ }; | | |
| 2368 | \\const s2 = S{ .a = 1, .b = 2, }; | | |
| 2369 | \\ | | |
| 2370 | ); | | |
| 2371 | } | | |
| 2372 | | | |
| 2373 | test "zig fmt: switch" { | 2363 | test "zig fmt: switch" { |
| 2374 | try testCanonical( | 2364 | try testCanonical( |
| 2375 | \\test "switch" { | 2365 | \\test "switch" { |
| ... | @@ -2676,6 +2666,16 @@ test "zig fmt: arrays" { | ... | @@ -2676,6 +2666,16 @@ test "zig fmt: arrays" { |
| 2676 | ); | 2666 | ); |
| 2677 | } | 2667 | } |
| 2678 | | 2668 | |
| | 2669 | test "zig fmt: container initializers" { |
| | 2670 | try testCanonical( |
| | 2671 | \\const a1 = []u8{ }; |
| | 2672 | \\const a2 = []u8{ 1, 2, 3, 4 }; |
| | 2673 | \\const s1 = S{ }; |
| | 2674 | \\const s2 = S{ .a = 1, .b = 2, }; |
| | 2675 | \\ |
| | 2676 | ); |
| | 2677 | } |
| | 2678 | |
| 2679 | test "zig fmt: precedence" { | 2679 | test "zig fmt: precedence" { |
| 2680 | try testCanonical( | 2680 | try testCanonical( |
| 2681 | \\test "precedence" { | 2681 | \\test "precedence" { |