Files
pplus-library/mojo/probes/string-codepoint-oob.mojo
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

8 lines
200 B
Mojo

# probe: what happens when a String is indexed by codepoint= past its end?
def main():
var t = String("abc")
var i = 3
print("before")
print(String(t[codepoint=i]))
print("after")