Skip to content

Commit 31d81b7

Browse files
committed
test 2-arg show for various new types
1 parent 69185aa commit 31d81b7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/no_invalidations.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ function test_expr(f, supertype::Type)
5151
end
5252

5353
@testset "no invalidations test set" begin
54+
@testset "2-arg `show` for various new types" begin
55+
stypes = (Integer, AbstractString, DenseVector{UInt8}, DenseMatrix{Float32}, AbstractUnitRange{Int})
56+
broken = (AbstractString,)
57+
@testset "S: $S" for S stypes
58+
@test test_expr((n -> :(function Base.show(::IO, ::$n) end)), S) broken=(S broken)
59+
end
60+
end
5461
@testset "new subtype of `Integer`" begin
5562
int_types = (Bool, Int8, UInt8, Int16, UInt16, Int, UInt, BigInt)
5663
@testset "construction of old int type from new type" begin

0 commit comments

Comments
 (0)