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

rtol and atol for @assert like @test? #57503

Open
alecloudenback opened this issue Feb 22, 2025 · 1 comment
Open

rtol and atol for @assert like @test? #57503

alecloudenback opened this issue Feb 22, 2025 · 1 comment
Labels
feature Indicates new feature / enhancement requests

Comments

@alecloudenback
Copy link
Contributor

I'd like if @assert followed the options that @test has here:

julia> using Test

julia> @test 1.0000001  1.0 atol= 0.0001
Test Passed

julia> @assert 1.0000001  1.0 atol= 0.0001
ERROR: AssertionError: 0.0001
@adienes
Copy link
Contributor

adienes commented Feb 22, 2025

disagree: atol should be associated with only and not the macros using these expressions. personally speaking I wouldn't have let @test use atol either in the first place

@nsajko nsajko added the feature Indicates new feature / enhancement requests label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Indicates new feature / enhancement requests
Projects
None yet
Development

No branches or pull requests

3 participants