Commit Graph
9 Commits
Author SHA1 Message Date
Zef Hemel 65cd6e7585 Enhance language core tests with comprehensive pairs and ipairs validation
- Modified the `assertEqual` function to include a custom message for assertion failures.
- Added tests for empty tables and JavaScript arrays to verify correct behavior of `pairs` and `ipairs`.
- Implemented checks for mixed key types and ensured `ipairs` only iterates over numeric indices, validating the expected values.
2025-04-17 15:23:59 +02:00
Zef Hemel 3440217a88 Enhance tonumber function in Lua standard library
- Updated the `tonumber` function to support optional base conversion, allowing for binary, octal, decimal, hexadecimal, and base 36 inputs.
- Added validation for invalid bases and non-numeric strings.
- Introduced comprehensive tests for various `tonumber` scenarios in `language_core_test.lua` to ensure correct functionality.
2025-04-04 09:11:13 +02:00
Zef Hemel d73d9b155f Further work 2025-03-21 16:12:10 +01:00
Zef Hemel 1881fa8af9 Lua: work to make more table APIs work with native JS arrays 2025-03-10 17:31:02 +01:00
Zef Hemel 242ae73078 Lua: fix some subtle Lua-isms 2025-03-09 15:37:38 +01:00
Zef Hemel 105908204b Fixes #1253
More accurate type classification and eager evaluation of left "and" operand.
2025-02-22 21:28:00 +01:00
Zef Hemel 6699ac783f Added some more string tests 2025-02-08 20:32:42 +01:00
Zef Hemel 55f5a465c8 Lua query fixes 2025-01-16 15:33:18 +01:00
Zef Hemel bc1bdea396 Lua: refactored and extracted test approach 2025-01-15 20:47:58 +01:00