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

7 lines
198 B
Mojo

# probe: what do s[byte=i] and s[codepoint=i] return on a non-ASCII string?
def main():
var s = String("héllo")
print(s[byte=0])
print(s[codepoint=1])
print(String(s[codepoint=1]))