We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f6a0d8 commit 9176e30Copy full SHA for 9176e30
test/code.jl
@@ -106,13 +106,13 @@ nanmath_st.rewrites[:nanmath] = true
106
107
@test toexpr(a^-1) == :($(/)(1, a))
108
@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))
+ @test toexpr(NaNMath.pow(a, -1)) == :($(/)(1, a))
+ @test toexpr(NaNMath.pow(a, -1), nanmath_st) == :($(/)(1, a))
111
112
@test toexpr(a^-2) == :($(/)(1, $(^)(a, 2)))
113
@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))
+ @test toexpr(NaNMath.pow(a, -2)) == :($(/)(1, $(^)(a, 2)))
+ @test toexpr(NaNMath.pow(a, -2), nanmath_st) == :($(/)(1, $(^)(a, 2)))
116
117
f = GlobalRef(NaNMath, :sin)
118
test_repr(toexpr(LiteralExpr(:(let x=1, y=2
0 commit comments