Skip to content

Commit 3185d30

Browse files
committed
Add test for #749
1 parent 565d81a commit 3185d30

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/diff.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,3 +510,13 @@ let
510510
@test Symbolics.isaffine(expr, w)
511511
@test collect(Symbolics.hessian_sparsity(expr, w)) == fill(false, 2, 2)
512512
end
513+
514+
# issue #749
515+
let
516+
@variables x y
517+
@register_symbolic Base.FastMath.exp_fast(x, y)
518+
expr = Base.FastMath.exp_fast(x, y)
519+
@test !Symbolics.islinear(expr, [x, y])
520+
@test !Symbolics.isaffine(expr, [x, y])
521+
@test collect(Symbolics.hessian_sparsity(expr, [x, y])) == fill(true, 2, 2)
522+
end

0 commit comments

Comments
 (0)