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

Add a way to write custom assert functions #32

Merged
merged 1 commit into from
Nov 28, 2024
Merged

Conversation

elgopher
Copy link
Owner

@elgopher elgopher commented Nov 26, 2024

With this PR anyone can write custom assert functions and reuse them
in multiple tests. Custom assert functions can call assert_*** or a new
function called test_fail(). In order to properly print file and line
number in the GUI, assert functions should call test_helper() function
in the beginning.

@elgopher elgopher self-assigned this Nov 26, 2024
@elgopher elgopher force-pushed the custom-assertions branch 23 times, most recently from e9ef046 to a9289f8 Compare November 28, 2024 21:02
@elgopher elgopher marked this pull request as ready for review November 28, 2024 21:02
@elgopher elgopher force-pushed the custom-assertions branch 2 times, most recently from abdea7e to df237cb Compare November 28, 2024 21:06
With this commit anyone can write custom assert functions and reuse them
in multiple tests. Custom assert functions can call assert_*** or a new
function called test_fail(). In order to properly print file and line
number in the GUI, assert functions should call test_helper() function
in the beginning.
@elgopher elgopher merged commit 91cf486 into master Nov 28, 2024
@elgopher elgopher deleted the custom-assertions branch November 28, 2024 21:12
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.

1 participant