zig fmt: alignment in anonymous literal

This commit is contained in:
Andrew Kelley
2021-02-22 21:04:22 -07:00
parent a6038f0375
commit 8379fff804
2 changed files with 395 additions and 211 deletions

View File

@@ -540,23 +540,23 @@ test "zig fmt: anon literal in array" {
);
}
//test "zig fmt: alignment in anonymous literal" {
// try testTransform(
// \\const a = .{
// \\ "U", "L", "F",
// \\ "U'",
// \\ "L'",
// \\ "F'",
// \\};
// \\
// ,
// \\const a = .{
// \\ "U", "L", "F",
// \\ "U'", "L'", "F'",
// \\};
// \\
// );
//}
test "zig fmt: alignment in anonymous literal" {
try testTransform(
\\const a = .{
\\ "U", "L", "F",
\\ "U'",
\\ "L'",
\\ "F'",
\\};
\\
,
\\const a = .{
\\ "U", "L", "F",
\\ "U'", "L'", "F'",
\\};
\\
);
}
test "zig fmt: anon struct literal 0 element" {
try testCanonical(

File diff suppressed because it is too large Load Diff