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

Introduces using doAssert for tests consistently #57

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

PhilippMDoerner
Copy link
Contributor

@PhilippMDoerner PhilippMDoerner commented Jan 13, 2024

This is a tiny PR, just moves the subset of tests that use "assert" from using "assert" to "doAssert"

Some tests already use doAssert, some use assert.

For tests, they should be compileable as debug, release and danger build without losing validity.
That makes doAssert the only valid choice.

I'm currently playing around with solidifying the test-suite (e.g. by adding valgrind checks or similar).
Those PR is somewhat of a prerequisite for that playing around since the test-suite should also be doing tests for -d:danger builds.

Some tests already use doAssert, some use assert.
For tests, they should be compileable as debug, release and danger build without losing validity.
That makes doAssert the only valid choice.
@Araq Araq merged commit 2ce3d80 into nim-lang:master Jan 13, 2024
12 checks passed
@PhilippMDoerner PhilippMDoerner deleted the use-stronger-assertions branch January 13, 2024 17:19
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