Skip to content

Commit 0e8314f

Browse files
committed
Split type test to own line and be explict
1 parent 376bfdf commit 0e8314f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/rule_definition_tools.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ end
122122

123123
y, ẏ = frule((NO_FIELDS, 50f0), simo, π)
124124
@test y == (π, 2π)
125-
# test with === because type also must match
126-
@test=== Composite{typeof(y)}(50f0, 100f0)
125+
@test== Composite{typeof(y)}(50f0, 100f0)
126+
# make sure type is exactly as expected:
127+
@testisa Composite{Tuple{Irrational{}, Float64}, Tuple{Float32, Float32}}
127128
end
128129
end
129130
end

0 commit comments

Comments
 (0)