Skip to content

Commit 242f5c7

Browse files
authored
Test for issue #557 (#568)
1 parent c8c3d65 commit 242f5c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,7 @@ end
13581358
end
13591359
@testset ">> Element-wise addition" begin
13601360
@test @inferred(5m .+ [1m, 2m, 3m]) == [6m, 7m, 8m]
1361+
@test Any[1.0m, 2.0m] .+ 3.0m == [4.0m, 5.0m] # issue 557 (actually a bug in Julia 1.8.1)
13611362
end
13621363
@testset ">> Element-wise comparison" begin
13631364
@test @inferred([0.0m, 2.0m] .< [3.0m, 2.0μm]) == BitArray([true,false])

0 commit comments

Comments
 (0)