Skip to content

Commit

Permalink
Test lastindex for LazyString (#56585)
Browse files Browse the repository at this point in the history
Should get the lazy strings file to 100% coverage
  • Loading branch information
kshyatt authored Nov 22, 2024
1 parent 2a02fc3 commit e29d211
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/strings/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,7 @@ end
@test codeunit(l) == UInt8
@test codeunit(l,2) == 0x2b
@test isvalid(l, 1)
@test lastindex(l) == lastindex("1+2")
@test Base.infer_effects((Any,)) do a
throw(lazy"a is $a")
end |> Core.Compiler.is_foldable
Expand Down

0 comments on commit e29d211

Please sign in to comment.