Skip to content

Commit

Permalink
Fix tests for julia v0.7-DEV
Browse files Browse the repository at this point in the history
  • Loading branch information
PerezHz committed Nov 22, 2017
1 parent 02af848 commit 06d731f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/manyvariables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@ end
@test q[end-1:end] == pol[end-1:end]


@test_throws DomainError yT^(-2)
if VERSION < v"0.7.0-DEV"
@test_throws DomainError yT^(-2)
else
@test_throws AssertionError yT^(-2)
end
@test_throws DomainError yT^(-2.0)
@test (1+xT)^(3//2) == ((1+xT)^0.5)^3
@test real(xH) == xH
Expand Down
6 changes: 5 additions & 1 deletion test/onevariable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,11 @@ end
@test_throws ArgumentError 1/t
@test_throws ArgumentError zt/zt
@test_throws ArgumentError t^1.5
@test_throws DomainError t^(-2)
if VERSION < v"0.7.0-DEV"
@test_throws DomainError t^(-2)
else
@test_throws ArgumentError t^(-2)
end
@test_throws ArgumentError sqrt(t)
@test_throws ArgumentError log(t)
@test_throws ArgumentError cos(t)/sin(t)
Expand Down

0 comments on commit 06d731f

Please sign in to comment.