Fix arithmetic coercion - refactored and enhanced (#1576)
The Lua 5.4 compatible `tonumber` implementation completely reworked - custom char-by-char parser (no regexes) - proper Lua space handling - support for heximal integers and floats - support for scientific float notation - extended tests - updated website docs Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
This commit is contained in:
@@ -13,6 +13,10 @@ Deno.test("[Lua] Table tests", async () => {
|
||||
await runLuaTest("./stdlib/table_test.lua");
|
||||
});
|
||||
|
||||
Deno.test("[Lua] String to number tests", async () => {
|
||||
await runLuaTest("./tonumber_test.lua");
|
||||
});
|
||||
|
||||
Deno.test("[Lua] String tests", async () => {
|
||||
await runLuaTest("./stdlib/string_test.lua");
|
||||
// await runLuaTest("./stdlib/string_test2.lua");
|
||||
|
||||
Reference in New Issue
Block a user