Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Jan 16, 2025
1 parent cb668d9 commit cb0a069
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions test/test_basics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,13 @@ using Test: @testset, @test
@testset "UnspecifiedTypes (eltype=$elt)" for elt in (
Float32, Float64, Complex{Float32}, Complex{Float64}
)

for x in (
elt(2) + UnspecifiedZero(),
UnspecifiedZero() + elt(2),
)
for x in (elt(2) + UnspecifiedZero(), UnspecifiedZero() + elt(2))
@test x isa elt
@test x === elt(2)
end

for x in (
elt(2) * UnspecifiedZero(),
UnspecifiedZero() * elt(2),
)
for x in (elt(2) * UnspecifiedZero(), UnspecifiedZero() * elt(2))
@test x isa UnspecifiedZero
@test x === UnspecifiedZero()
end

end

0 comments on commit cb0a069

Please sign in to comment.