| ... | ... | @@ -4164,6 +4164,46 @@ test "zig fmt: for loop with ptr payload and index" { |
| 4164 | 4164 | ); |
| 4165 | 4165 | } |
| 4166 | 4166 | |
| 4167 | // TODO |
| 4168 | //test "zig fmt: proper indent line comment after multi-line single expr while loop" { |
| 4169 | // try testCanonical( |
| 4170 | // \\test { |
| 4171 | // \\ while (a) : (b) |
| 4172 | // \\ foo(); |
| 4173 | // \\ |
| 4174 | // \\ // bar |
| 4175 | // \\ baz(); |
| 4176 | // \\} |
| 4177 | // \\ |
| 4178 | // ); |
| 4179 | //} |
| 4180 | |
| 4181 | // TODO |
| 4182 | //test "zig fmt: respect extra newline between fn and pub usingnamespace" { |
| 4183 | // try testCanonical( |
| 4184 | // \\fn foo() void { |
| 4185 | // \\ bar(); |
| 4186 | // \\} |
| 4187 | // \\ |
| 4188 | // \\pub usingnamespace baz; |
| 4189 | // \\ |
| 4190 | // ); |
| 4191 | //} |
| 4192 | |
| 4193 | // TODO |
| 4194 | //test "zig fmt: respect extra newline between switch items" { |
| 4195 | // try testCanonical( |
| 4196 | // \\const a = switch (b) { |
| 4197 | // \\ .c => {}, |
| 4198 | // \\ |
| 4199 | // \\ .d, |
| 4200 | // \\ .e, |
| 4201 | // \\ => f, |
| 4202 | // \\}; |
| 4203 | // \\ |
| 4204 | // ); |
| 4205 | //} |
| 4206 | |
| 4167 | 4207 | test "zig fmt: error for invalid bit range" { |
| 4168 | 4208 | try testError( |
| 4169 | 4209 | \\var x: []align(0:0:0)u8 = bar; |