| ... | ... | @@ -2414,14 +2414,14 @@ test "zig fmt: preserve spacing" { |
| 2414 | 2414 | ); |
| 2415 | 2415 | } |
| 2416 | 2416 | |
| 2417 | | //test "zig fmt: return types" { |
| 2418 | | // try testCanonical( |
| 2419 | | // \\pub fn main() !void {} |
| 2420 | | // \\pub fn main() anytype {} |
| 2421 | | // \\pub fn main() i32 {} |
| 2422 | | // \\ |
| 2423 | | // ); |
| 2424 | | //} |
| 2417 | test "zig fmt: return types" { |
| 2418 | try testCanonical( |
| 2419 | \\pub fn main() !void {} |
| 2420 | \\pub fn main() FooBar {} |
| 2421 | \\pub fn main() i32 {} |
| 2422 | \\ |
| 2423 | ); |
| 2424 | } |
| 2425 | 2425 | |
| 2426 | 2426 | test "zig fmt: imports" { |
| 2427 | 2427 | try testCanonical( |
| ... | ... | @@ -2652,12 +2652,12 @@ test "zig fmt: call expression" { |
| 2652 | 2652 | ); |
| 2653 | 2653 | } |
| 2654 | 2654 | |
| 2655 | | //test "zig fmt: anytype type" { |
| 2656 | | // try testCanonical( |
| 2657 | | // \\fn print(args: anytype) anytype {} |
| 2658 | | // \\ |
| 2659 | | // ); |
| 2660 | | //} |
| 2655 | test "zig fmt: anytype type" { |
| 2656 | try testCanonical( |
| 2657 | \\fn print(args: anytype) @This() {} |
| 2658 | \\ |
| 2659 | ); |
| 2660 | } |
| 2661 | 2661 | |
| 2662 | 2662 | test "zig fmt: functions" { |
| 2663 | 2663 | try testCanonical( |