@@ -100,19 +100,19 @@ nanmath_st.rewrites[:nanmath] = true
100
100
@test toexpr (NaNMath. pow (a, b), nanmath_st) == :($ (NaNMath. pow)(a, b))
101
101
102
102
@test toexpr (a^ 2 ) == :($ (^ )(a, 2 ))
103
- @test toexpr (a^ 2 , nanmath_st) == :($ (NaNMath . pow )(a, 2 ))
103
+ @test toexpr (a^ 2 , nanmath_st) == :($ (^ )(a, 2 ))
104
104
@test toexpr (NaNMath. pow (a, 2 )) == :($ (^ )(a, 2 ))
105
- @test toexpr (NaNMath. pow (a, 2 ), nanmath_st) == :($ (NaNMath . pow )(a, 2 ))
105
+ @test toexpr (NaNMath. pow (a, 2 ), nanmath_st) == :($ (^ )(a, 2 ))
106
106
107
107
@test toexpr (a^- 1 ) == :($ (/ )(1 , a))
108
108
@test toexpr (a^- 1 , nanmath_st) == :($ (/ )(1 , a))
109
109
@test toexpr (NaNMath. pow (a, - 1 )) == :($ (inv)(a))
110
110
@test toexpr (NaNMath. pow (a, - 1 ), nanmath_st) == :($ (inv)(a))
111
111
112
112
@test toexpr (a^- 2 ) == :($ (/ )(1 , $ (^ )(a, 2 )))
113
- @test toexpr (a^- 2 , nanmath_st) == :($ (/ )(1 , $ (NaNMath . pow )(a, 2 )))
114
- @test toexpr (NaNMath. pow (a, - 2 )) == :($ (NaNMath . pow )($ (inv)(a), 2 ))
115
- @test toexpr (NaNMath. pow (a, - 2 ), nanmath_st) == :($ (NaNMath . pow )($ (inv)(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 ))
116
116
117
117
f = GlobalRef (NaNMath, :sin )
118
118
test_repr (toexpr (LiteralExpr (:(let x= 1 , y= 2
0 commit comments