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

Ensure a function call throws a warning? #78

Open
dourouc05 opened this issue Oct 11, 2016 · 0 comments
Open

Ensure a function call throws a warning? #78

dourouc05 opened this issue Oct 11, 2016 · 0 comments

Comments

@dourouc05
Copy link

There is already @fact_throws to check whether a function call gives an error or an exception, but no @fact_warns for warnings.

I think the syntax should be very similar to that of @fact, as a warning does not interrupt the function execution: it still returns a value, but prints something on the output.

(And I have no idea about how to implement such a thing. May be with STDERR redirection? I've yet to make it work…)

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

1 participant