motiejus/zig

fork of https://codeberg.org/ziglang/zig
git clone https://git.jakstys.lt/motiejus/zig.git
Log | Tree | Refs | README | LICENSE

commit 40f35e997a2155df8141ec309e43d6dad9785965 (tree)
parent 9d69e94bbad0b1ff23999584f5f632cfe8db3656
Author: Jimmi Holst Christensen <jhc@liab.dk>
Date:   Tue,  3 Apr 2018 15:17:26 +0200

std.zig.parser moved container initializer tests down

Diffstat:
Mstd/zig/parser.zig | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/std/zig/parser.zig b/std/zig/parser.zig @@ -2360,16 +2360,6 @@ test "zig fmt: union declaration" { ); } -test "zig fmt: container initializers" { - try testCanonical( - \\const a1 = []u8{ }; - \\const a2 = []u8{ 1, 2, 3, 4 }; - \\const s1 = S{ }; - \\const s2 = S{ .a = 1, .b = 2, }; - \\ - ); -} - test "zig fmt: switch" { try testCanonical( \\test "switch" { @@ -2676,6 +2666,16 @@ test "zig fmt: arrays" { ); } +test "zig fmt: container initializers" { + try testCanonical( + \\const a1 = []u8{ }; + \\const a2 = []u8{ 1, 2, 3, 4 }; + \\const s1 = S{ }; + \\const s2 = S{ .a = 1, .b = 2, }; + \\ + ); +} + test "zig fmt: precedence" { try testCanonical( \\test "precedence" {