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

Warning in fmpz_mat tests #236

Closed
wbhart opened this issue Aug 22, 2017 · 9 comments
Closed

Warning in fmpz_mat tests #236

wbhart opened this issue Aug 22, 2017 · 9 comments

Comments

@wbhart
Copy link
Contributor

wbhart commented Aug 22, 2017

fmpz_mat.convert...WARNING: When trying to convert a fmpz_mat to a Matrix{Int}, some elements were too large to fit the standard Int type: try to convert to a matrix of BigInt.

@thofma
Copy link
Member

thofma commented Aug 22, 2017

That is on purpose to test the warning.

@wbhart
Copy link
Contributor Author

wbhart commented Aug 22, 2017 via email

@wbhart wbhart closed this as completed Aug 22, 2017
@kalmarek
Copy link
Contributor

how about using @test_warn?
JuliaLang/julia#19903

@wbhart
Copy link
Contributor Author

wbhart commented Aug 22, 2017

This is only in Julia-0.7, yes?

@kalmarek
Copy link
Contributor

I have it in my julia-0.6

@wbhart
Copy link
Contributor Author

wbhart commented Aug 22, 2017

Ok, then I guess we should do that then.

@wbhart wbhart reopened this Aug 22, 2017
@wbhart
Copy link
Contributor Author

wbhart commented Aug 22, 2017 via email

@thofma
Copy link
Member

thofma commented Oct 13, 2017

The function first gives a warning and then throws an error. We cannot test both in the test. How about we only throw the error, but change it's text to the text of the warning?

@wbhart
Copy link
Contributor Author

wbhart commented Oct 13, 2017 via email

@thofma thofma closed this as completed Oct 15, 2017
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

No branches or pull requests

3 participants