Skip to content

Commit 4bbc378

Browse files
committed
test new subtype of AbstractString with thisind etc. methods
1 parent 31d81b7 commit 4bbc378

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/no_invalidations.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ end
5858
@test test_expr((n -> :(function Base.show(::IO, ::$n) end)), S) broken=(S broken)
5959
end
6060
end
61+
@testset "new subtype of `AbstractString`" begin
62+
@testset "index-related" begin
63+
fs = (thisind, prevind, nextind)
64+
broken = (thisind, prevind, nextind)
65+
@testset "f: $f" for f fs
66+
@test test_expr((n -> :(function Base.$f(::$n, ::Int) end)), AbstractString) broken=(f broken)
67+
end
68+
end
69+
end
6170
@testset "new subtype of `Integer`" begin
6271
int_types = (Bool, Int8, UInt8, Int16, UInt16, Int, UInt, BigInt)
6372
@testset "construction of old int type from new type" begin

0 commit comments

Comments
 (0)