From affebe675eaa4761475768ed5386439f5d828dd1 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Tue, 7 Jun 2016 11:35:32 +0900 Subject: [PATCH] Exclude division test for Float16 --- test/unittest/bind.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/unittest/bind.jl b/test/unittest/bind.jl index 64ae2cd95592..c764435d5a9c 100644 --- a/test/unittest/bind.jl +++ b/test/unittest/bind.jl @@ -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