Skip to content

Commit 9176e30

Browse files
test: update codegen tests accordingly
1 parent 3f6a0d8 commit 9176e30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/code.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ nanmath_st.rewrites[:nanmath] = true
106106

107107
@test toexpr(a^-1) == :($(/)(1, a))
108108
@test toexpr(a^-1, nanmath_st) == :($(/)(1, a))
109-
@test toexpr(NaNMath.pow(a, -1)) == :($(inv)(a))
110-
@test toexpr(NaNMath.pow(a, -1), nanmath_st) == :($(inv)(a))
109+
@test toexpr(NaNMath.pow(a, -1)) == :($(/)(1, a))
110+
@test toexpr(NaNMath.pow(a, -1), nanmath_st) == :($(/)(1, a))
111111

112112
@test toexpr(a^-2) == :($(/)(1, $(^)(a, 2)))
113113
@test toexpr(a^-2, nanmath_st) == :($(/)(1, $(^)(a, 2)))
114-
@test toexpr(NaNMath.pow(a, -2)) == :($(^)($(inv)(a), 2))
115-
@test toexpr(NaNMath.pow(a, -2), nanmath_st) == :($(^)($(inv)(a), 2))
114+
@test toexpr(NaNMath.pow(a, -2)) == :($(/)(1, $(^)(a, 2)))
115+
@test toexpr(NaNMath.pow(a, -2), nanmath_st) == :($(/)(1, $(^)(a, 2)))
116116

117117
f = GlobalRef(NaNMath, :sin)
118118
test_repr(toexpr(LiteralExpr(:(let x=1, y=2

0 commit comments

Comments
 (0)