A little example
using Base.Test
function f(x)
if x 0
warn(x should be non-negative)
end
return x
end
@test_warning f(-1) #this is the test I am looking for
W dniu piątek, 20 czerwca 2014 14:27:55 UTC+2 użytkownik Paweł Biernat
napisał:
I would like to write a test
There is currently no way to do this.
On Fri, Jun 20, 2014 at 8:49 AM, Paweł Biernat pawel.bier...@gmail.com
wrote:
A little example
using Base.Test
function f(x)
if x 0
warn(x should be non-negative)
end
return x
end
@test_warning f(-1) #this is the test I am