zig0

my attempts at zig bootstrapping in C
Log | Files | Refs | README | LICENSE

commit 74b15781e469dd86ac7367df5f11022a9855bfea (tree)
parent 9981b312e9c0a3e6643eecb49bef9e5ee6cca90d
Author: Motiejus Jakštys <motiejus.jakstys@chronosphere.io>
Date:   Tue, 10 Feb 2026 18:23:57 +0000

parser: port test "whitespace fixes"

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Diffstat:
Mparser_test.zig | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/parser_test.zig b/parser_test.zig @@ -1505,6 +1505,18 @@ test "zig fmt: block in slice expression" { ); } +test "zig fmt: whitespace fixes" { + try testTransform("test \"\" {\r\n\tconst hi = x;\r\n}\n// zig fmt: off\ntest \"\"{\r\n\tconst a = b;}\r\n", + \\test "" { + \\ const hi = x; + \\} + \\// zig fmt: off + \\test ""{ + \\ const a = b;} + \\ + ); +} + test "zig fmt: tagged union with enum values" { try testCanonical( \\const MultipleChoice2 = union(enum(u32)) {