luna-core 2.11.0

Pure-Rust Lua runtime (interpreter only, zero third-party dependencies). The JIT-equipped variant lives in the `luna-jit` crate.
Documentation
1
2
3
4
5
6
7
8
9
10
-- v2.11 CORPUS-II: string.sub edge cases.
print(string.sub("hello", 0))       -- "hello" (0 clamps to 1)
print(string.sub("hello", 6))       -- "" (past end)
print(string.sub("hello", 3, 100))  -- "llo"
print(string.sub("hello", -10, 3))  -- "hel"
print(string.sub("hello", 0, 0))    -- ""
print(string.sub("hello", 3, 2))    -- "" (start > end)
print(string.sub("hello", -3))      -- "llo"
print(string.sub("hello", -3, -1))  -- "llo"
print(string.sub("hello", -3, -2))  -- "ll"