Skip to content

Commit

Permalink
Test for issue #557 (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
sostock authored Oct 9, 2022
1 parent c8c3d65 commit 242f5c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,7 @@ end
end
@testset ">> Element-wise addition" begin
@test @inferred(5m .+ [1m, 2m, 3m]) == [6m, 7m, 8m]
@test Any[1.0m, 2.0m] .+ 3.0m == [4.0m, 5.0m] # issue 557 (actually a bug in Julia 1.8.1)
end
@testset ">> Element-wise comparison" begin
@test @inferred([0.0m, 2.0m] .< [3.0m, 2.0μm]) == BitArray([true,false])
Expand Down

0 comments on commit 242f5c7

Please sign in to comment.