diff --git a/test/MiscTest.jl b/test/MiscTest.jl index 608f0b46..be616084 100644 --- a/test/MiscTest.jl +++ b/test/MiscTest.jl @@ -136,6 +136,10 @@ for i in 1:3, j in 1:3 i != j && (@test h[i, j] ≈ 0.0) end +######## +# misc # +######## + # issue 267 @noinline f267(z, x) = x[1] z267 = ([(1, (2), [(3, (4, 5, [1, 2, (3, (4, 5), [5])]), (5))])]) @@ -145,4 +149,8 @@ let z = z267 @test ForwardDiff.hessian(h, [1.]) == zeros(1, 1) end -end +# issue #290 +@test ForwardDiff.derivative(x -> rem2pi(x, RoundUp), rand()) == noe +@test ForwardDiff.derivative(x -> rem2pi(x, RoundDown), rand()) == noe + +end # module