authorgravatar for jhc@dismail.deJimmi Holst Christensen <jhc@dismail.de> 2018-04-03 15:17:26+02:00
committergravatar for jhc@dismail.deJimmi Holst Christensen <jhc@dismail.de> 2018-04-03 15:17:26+02:00
log40f35e997a2155df8141ec309e43d6dad9785965
treee7dcdbec71f59b0776ab50592a24d86d6a26a2a7
parent9d69e94bbad0b1ff23999584f5f632cfe8db3656

std.zig.parser moved container initializer tests down


1 files changed, 10 insertions(+), 10 deletions(-)

std/zig/parser.zig+10-10
...@@ -2360,16 +2360,6 @@ test "zig fmt: union declaration" {...@@ -2360,16 +2360,6 @@ test "zig fmt: union declaration" {
2360 );2360 );
2361}2361}
23622362
2363test "zig fmt: container initializers" {
2364 try testCanonical(
2365 \\const a1 = []u8{ };
2366 \\const a2 = []u8{ 1, 2, 3, 4 };
2367 \\const s1 = S{ };
2368 \\const s2 = S{ .a = 1, .b = 2, };
2369 \\
2370 );
2371}
2372
2373test "zig fmt: switch" {2363test "zig fmt: switch" {
2374 try testCanonical(2364 try testCanonical(
2375 \\test "switch" {2365 \\test "switch" {
...@@ -2676,6 +2666,16 @@ test "zig fmt: arrays" {...@@ -2676,6 +2666,16 @@ test "zig fmt: arrays" {
2676 );2666 );
2677}2667}
26782668
2669test "zig fmt: container initializers" {
2670 try testCanonical(
2671 \\const a1 = []u8{ };
2672 \\const a2 = []u8{ 1, 2, 3, 4 };
2673 \\const s1 = S{ };
2674 \\const s2 = S{ .a = 1, .b = 2, };
2675 \\
2676 );
2677}
2678
2679test "zig fmt: precedence" {2679test "zig fmt: precedence" {
2680 try testCanonical(2680 try testCanonical(
2681 \\test "precedence" {2681 \\test "precedence" {