| ... | ... | @@ -3447,21 +3447,15 @@ test "zig fmt: file ends with struct field" { |
| 3447 | 3447 | ); |
| 3448 | 3448 | } |
| 3449 | 3449 | |
| 3450 | | // TODO intentionally change the behavior of this case? |
| 3451 | | // for array literals we necessarily have meaningful empty comments |
| 3452 | | //test "zig fmt: comment after empty comment" { |
| 3453 | | // try testTransform( |
| 3454 | | // \\const x = true; // |
| 3455 | | // \\// |
| 3456 | | // \\// |
| 3457 | | // \\//a |
| 3458 | | // \\ |
| 3459 | | // , |
| 3460 | | // \\const x = true; |
| 3461 | | // \\//a |
| 3462 | | // \\ |
| 3463 | | // ); |
| 3464 | | //} |
| 3450 | test "zig fmt: comment after empty comment" { |
| 3451 | try testCanonical( |
| 3452 | \\const x = true; // |
| 3453 | \\// |
| 3454 | \\// |
| 3455 | \\//a |
| 3456 | \\ |
| 3457 | ); |
| 3458 | } |
| 3465 | 3459 | |
| 3466 | 3460 | test "zig fmt: line comment in array" { |
| 3467 | 3461 | try testTransform( |