Skip to content

Avoid string repetition expressions in tests on newer Zig#181

Closed
here-Leslie-Lau wants to merge 1 commit into
Hejsil:masterfrom
here-Leslie-Lau:fix/test-string-repetition-expr
Closed

Avoid string repetition expressions in tests on newer Zig#181
here-Leslie-Lau wants to merge 1 commit into
Hejsil:masterfrom
here-Leslie-Lau:fix/test-string-repetition-expr

Conversation

@here-Leslie-Lau
Copy link
Copy Markdown
Contributor

This updates two tests that use ** string repetition:

  • clap.zig test "overflow-safe"
  • clap/codepoint_counting_writer.zig test CodepointCountingWriter

Newer Zig dev builds reject those expressions during compilation. This change keeps the test intent the same, but builds the input strings explicitly at comptime instead of relying on **.
No runtime behavior changes. This only affects test code.

Close: #180

@Hejsil
Copy link
Copy Markdown
Owner

Hejsil commented May 7, 2026

Thanks, but I've decided to fix it in a slightly simpler way here bf56f22

@Hejsil Hejsil closed this May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests fail to compile on newer Zig dev builds because of string repetition expressions

2 participants