luatypechecks, v1.3.4
Posted on

The library that implements various type checks in order to simulate static typing in the Lua language.
Fix the bug with checking non-table values.
Note that this library isn't designed to validate input data, but only to simulate static typing for function parameters.
Disclaimer: this library was written directly on an Android smartphone with the QLua IDE.
Change Log
- fix the
checks._are_properties_existing_and_valid()function:- fix the bug with checking non-table values;
- indirectly affected functions:
- property checks:
checks.has_properties();checks.make_properties_checker();checks.has_properties_or_is_nil();checks.make_properties_or_nil_checker();checks.has_properties_anywhere();checks.make_properties_anywhere_checker();checks.has_properties_anywhere_or_is_nil();checks.make_properties_anywhere_or_nil_checker();
- method checks:
checks.has_methods();checks.make_methods_checker();checks.has_methods_or_is_nil();checks.make_methods_or_nil_checker();checks.has_methods_anywhere();checks.make_methods_anywhere_checker();checks.has_methods_anywhere_or_is_nil();checks.make_methods_anywhere_or_nil_checker();
- property checks:
- fix the tests of regular and metaproperties/methods:
- add the test cases with checking non-table values against a list of regular and metaproperties/methods.
Repository
Link: https://github.com/thewizardplusplus/luatypechecks/tree/v1.3.4.
Content: code.
License: MIT.