Skip to content

Commit 40174cd

Browse files
committed
test bug
1 parent 1fe125e commit 40174cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/rulesets/Base/fastmath_able.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,16 @@ const FASTABLE_AST = quote
160160
end
161161

162162
@testset "^(x::$T, p::$S)" for T in (Float64, ComplexF64), S in (Float64, ComplexF64)
163-
test_frule(^, rand(T) + 3, rand(T) + 3)
164-
test_rrule(^, rand(T) + 3, rand(T) + 3)
163+
test_frule(^, rand(T) + 3, rand(S) + 3)
164+
test_rrule(^, rand(T) + 3, rand(S) + 3)
165165

166166
# When both x & p are Real, and !(isinteger(p)),
167167
# then x must be positive to avoid a DomainError
168168
T <: Real && S <: Real && continue
169169
# In other cases, we can test values near zero:
170170

171-
test_frule(^, randn(T), rand(T))
172-
test_rrule(^, rand(T), rand(T))
171+
test_frule(^, randn(T), rand(S))
172+
test_rrule(^, rand(T), rand(S))
173173
end
174174

175175
# Tests for power functions, at values near to zero.

0 commit comments

Comments
 (0)