Skip to content

Commit 76afd4d

Browse files
committed
arithmetic: also test *
1 parent 794b873 commit 76afd4d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

test/no_invalidations.jl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,15 @@ end
5959
end
6060
end
6161
@testset "arithmetic between old int types and new int type" begin
62-
broken = (Int,)
62+
ops = (:+, :*)
63+
broken = ((Int, :+),)
6364
@testset "T: $T" for T int_types
64-
@test (
65-
test_expr(n -> :(Base.:(+)(::$n, m::$T) = m)) &&
66-
test_expr(n -> :(Base.:(+)(m::$T, ::$n) = m))
67-
) broken=(T broken)
65+
@testset "op: $op" for op ops
66+
@test (
67+
test_expr(n -> :(Base.$op(::$n, m::$T) = m)) &&
68+
test_expr(n -> :(Base.$op(m::$T, ::$n) = m))
69+
) broken=((T, op) broken)
70+
end
6871
end
6972
end
7073
@testset "promotion between old int types and new int type" begin

0 commit comments

Comments
 (0)