move develop sources to develop directory

This commit is contained in:
BlackMATov
2024-11-11 20:04:44 +07:00
parent 62584ea36c
commit 463deab362
4 changed files with 3 additions and 3 deletions

25
develop/untests.lua Normal file
View File

@@ -0,0 +1,25 @@
local evolved = require 'evolved'
---@param name string
---@param func fun(...):...
---@param ... any
local function describe(name, func, ...)
collectgarbage('stop')
print(string.format('- %s ...', name))
local start_s = os.clock()
local start_kb = collectgarbage('count')
local success, result = pcall(func, ...)
local finish_s = os.clock() - start_s
local finish_kb = collectgarbage('count') - start_kb
print(string.format(' %s | ms: %.2f | mb: %.2f',
success and 'OK' or 'FAILED', finish_s * 1000, finish_kb / 1024))
if not success then print(' ' .. result) end
collectgarbage('restart')
end