mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
zig fmt: add 3 more disabled failing test cases
Found by running `zig fmt` on the std lib.
This commit is contained in:
parent
4420fe97be
commit
05f304807f
@ -4164,6 +4164,46 @@ test "zig fmt: for loop with ptr payload and index" {
|
||||
);
|
||||
}
|
||||
|
||||
// TODO
|
||||
//test "zig fmt: proper indent line comment after multi-line single expr while loop" {
|
||||
// try testCanonical(
|
||||
// \\test {
|
||||
// \\ while (a) : (b)
|
||||
// \\ foo();
|
||||
// \\
|
||||
// \\ // bar
|
||||
// \\ baz();
|
||||
// \\}
|
||||
// \\
|
||||
// );
|
||||
//}
|
||||
|
||||
// TODO
|
||||
//test "zig fmt: respect extra newline between fn and pub usingnamespace" {
|
||||
// try testCanonical(
|
||||
// \\fn foo() void {
|
||||
// \\ bar();
|
||||
// \\}
|
||||
// \\
|
||||
// \\pub usingnamespace baz;
|
||||
// \\
|
||||
// );
|
||||
//}
|
||||
|
||||
// TODO
|
||||
//test "zig fmt: respect extra newline between switch items" {
|
||||
// try testCanonical(
|
||||
// \\const a = switch (b) {
|
||||
// \\ .c => {},
|
||||
// \\
|
||||
// \\ .d,
|
||||
// \\ .e,
|
||||
// \\ => f,
|
||||
// \\};
|
||||
// \\
|
||||
// );
|
||||
//}
|
||||
|
||||
test "zig fmt: error for invalid bit range" {
|
||||
try testError(
|
||||
\\var x: []align(0:0:0)u8 = bar;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user