From 10c239593820f3bce45348b1cad39b66f4f1d3bd Mon Sep 17 00:00:00 2001 From: Katharine Hyatt Date: Sun, 17 Nov 2024 13:36:09 -0500 Subject: [PATCH] Test lastindex for LazyString --- test/strings/basic.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/strings/basic.jl b/test/strings/basic.jl index ee92995bd2e11..b652523d6b193 100644 --- a/test/strings/basic.jl +++ b/test/strings/basic.jl @@ -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