| ... | ... | @@ -4189,19 +4189,18 @@ test "zig fmt: respect extra newline between fn and pub usingnamespace" { |
| 4189 | 4189 | ); |
| 4190 | 4190 | } |
| 4191 | 4191 | |
| 4192 | | // TODO |
| 4193 | | //test "zig fmt: respect extra newline between switch items" { |
| 4194 | | // try testCanonical( |
| 4195 | | // \\const a = switch (b) { |
| 4196 | | // \\ .c => {}, |
| 4197 | | // \\ |
| 4198 | | // \\ .d, |
| 4199 | | // \\ .e, |
| 4200 | | // \\ => f, |
| 4201 | | // \\}; |
| 4202 | | // \\ |
| 4203 | | // ); |
| 4204 | | //} |
| 4192 | test "zig fmt: respect extra newline between switch items" { |
| 4193 | try testCanonical( |
| 4194 | \\const a = switch (b) { |
| 4195 | \\ .c => {}, |
| 4196 | \\ |
| 4197 | \\ .d, |
| 4198 | \\ .e, |
| 4199 | \\ => f, |
| 4200 | \\}; |
| 4201 | \\ |
| 4202 | ); |
| 4203 | } |
| 4205 | 4204 | |
| 4206 | 4205 | test "zig fmt: error for invalid bit range" { |
| 4207 | 4206 | try testError( |