Files
pplus-library/mojo/probes/string-codepoint-negative.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
208 B
Mojo

# probe: what happens when a String is indexed by codepoint= at a negative index?
def main():
var t = String("abc")
var i = -1
print("before")
print(String(t[codepoint=i]))
print("after")