Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mark std.testing.print as a public function #22366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GrayHatter
Copy link
Contributor

Zig's stdlib testing is able to print helpful error messages when attempting to validate a test. This works both during comptime, and runtime. This exposes the previously internal function to be used in any custom built test functions to produce helpful output that is similar behavior to the standard test framework.

Zig's stdlib testing is able to print helpful error messages when
attempting to validate a test. This works both during comptime, and
runtime. This exposes the previously internal function to be used in any
custom built test functions to produce helpful output that is similar
behavior to the standard test framework.
@InKryption
Copy link
Contributor

From the peanut gallery: maybe this should also come with a comptime assertion in the function that is_test is true.

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