Testing
The test suite uses plain Lua and lives in tests/.
lua tests/run.lua
The suite covers:
- Class creation and initialization.
- Accessors and private state.
- Single, multiple, and transitive inheritance.
- Includes and cloning.
- Registered classes.
- Type identity with
Class:isandinstance:Is. - Type assertions with
Class:assertIsandinstance:AssertIs. - Spoofed
__typetables when class-table identity is required. - Operator behavior.
- Debug output.
GitHub Actions runs the tests on Lua 5.1, 5.2, 5.3, and 5.4.