Skip to content

Conversation

keiravillekode
Copy link
Contributor

No description provided.

Copy link
Contributor

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

@keiravillekode
Copy link
Contributor Author

Discussed in forum

@keiravillekode keiravillekode requested review from ee7 and kotp September 18, 2025 05:10
Copy link
Member

@kotp kotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, with comment.


fn testReverse(comptime s: []const u8, expected: []const u8) !void {
var buffer: [s.len]u8 = undefined;
const buffer_size = 80;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment the magic number, maybe, to demystify it? Why 80? Why not 79 or 81?

@keiravillekode keiravillekode merged commit 09f7e57 into exercism:main Sep 18, 2025
7 checks passed
@keiravillekode keiravillekode deleted the reverse-string-fixed-buffer branch September 18, 2025 07:18
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.

2 participants