aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua/unit/lua_util.misc.lua
Commit message (Collapse)AuthorAgeFilesLines
* [Minor] Microoptimize lua_util.str_endswithAnton Yuzhaninov2022-02-261-1/+32
| | | | | | | | Use find to check string suffix instead of sub (which involves string interning of a returned string). Benchmarks with LuaJIT 2.1.0 shows that an option with find is significantly faster. While here added unit test for this function.
* [Minor] Lua_util: Rework and add tests for callback_from_stringVsevolod Stakhov2019-08-231-0/+30