We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
*
1 parent 794b873 commit 76afd4dCopy full SHA for 76afd4d
test/no_invalidations.jl
@@ -59,12 +59,15 @@ end
59
end
60
61
@testset "arithmetic between old int types and new int type" begin
62
- broken = (Int,)
+ ops = (:+, :*)
63
+ broken = ((Int, :+),)
64
@testset "T: $T" for T ∈ int_types
- @test (
65
- test_expr(n -> :(Base.:(+)(::$n, m::$T) = m)) &&
66
- test_expr(n -> :(Base.:(+)(m::$T, ::$n) = m))
67
- ) broken=(T ∈ broken)
+ @testset "op: $op" for op ∈ ops
+ @test (
+ 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
71
72
73
@testset "promotion between old int types and new int type" begin
0 commit comments