You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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…)
There is already
@fact_throwsto check whether a function call gives an error or an exception, but no@fact_warnsfor 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…)