Skip to content

Commit

Permalink
Test for NaNMath.pow
Browse files Browse the repository at this point in the history
  • Loading branch information
contradict committed Oct 13, 2023
1 parent 52b62f1 commit 5ed0401
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/code.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ nanmath_st.rewrites[:nanmath] = true
end)
@test toexpr(SetArray(true, a, [x(t), AtIndex(9, b), c])).head == :macrocall


@test toexpr(NaNMath.pow(a, b)) == :($(NaNMath.pow)(a, b))

f = GlobalRef(NaNMath, :sin)
test_repr(toexpr(LiteralExpr(:(let x=1, y=2
$(sin(a+b))
Expand Down

0 comments on commit 5ed0401

Please sign in to comment.