Skip to content

Commit

Permalink
Add test for #749
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Dec 12, 2024
1 parent 565d81a commit 3185d30
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/diff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -510,3 +510,13 @@ let
@test Symbolics.isaffine(expr, w)
@test collect(Symbolics.hessian_sparsity(expr, w)) == fill(false, 2, 2)
end

# issue #749
let
@variables x y
@register_symbolic Base.FastMath.exp_fast(x, y)
expr = Base.FastMath.exp_fast(x, y)
@test !Symbolics.islinear(expr, [x, y])
@test !Symbolics.isaffine(expr, [x, y])
@test collect(Symbolics.hessian_sparsity(expr, [x, y])) == fill(true, 2, 2)
end

0 comments on commit 3185d30

Please sign in to comment.