Skip to content

Commit

Permalink
Exclude division test for Float16
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jun 7, 2016
1 parent a80ae98 commit affebe6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/unittest/bind.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ function test_arithmetic()
test_arithmetic(T, .+, (g,x,y) -> (g,g))
test_arithmetic(T, .-, (g,x,y) -> (g,-g))
test_arithmetic(T, .*, (g,x,y) -> (y.*g, x.*g))
T <: Integer || test_arithmetic(T, ./, (g,x,y) -> (g ./ y, -x .* g ./ (y.^2)))
if T <: Integer || T == Float16
warn("Not running division test for $T")
else
test_arithmetic(T, ./, (g,x,y) -> (g ./ y, -x .* g ./ (y.^2)))
end
end
end

Expand Down

0 comments on commit affebe6

Please sign in to comment.