Skip to content

Commit f3c3d59

Browse files
devmotionclaude
andcommitted
Simplify broadcastable tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5f95f44 commit f3c3d59

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎test/tangent_types/structural_tangent.jl‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,8 @@ end
142142

143143
# Test broadcastable
144144
@test broadcastable(ctup) === (2.0, 3)
145-
@test @inferred(ctup .+ 1) === (3.0, 4)
146-
@test @inferred(Tangent{Any}(1.0, [2.0]) .* 2) isa Tuple{Float64,Vector{Float64}}
147-
@test (ctup .+ [1, 2]) == [3.0, 5]
148-
@test broadcastable(Tangent{Tuple{}}()) === ()
145+
@test @inferred(Tangent{Any}(1.0, [2.0]) .* 2) == (2.0, [4.0])
146+
@test ctup .+ [1, 2] == [3.0, 5.0]
149147

150148
# Test getproperty is inferrable
151149
_unpacknamedtuple = tangent -> (tangent.x, tangent.y)

0 commit comments

Comments
 (0)