2 Commits

Author SHA1 Message Date
BlackMATov
287f03ef87 enable the debug mode for all tests 2026-02-03 06:12:29 +07:00
BlackMATov
260f841a3b fix some package usage 2026-02-03 06:11:58 +07:00
15 changed files with 58 additions and 9 deletions

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
local f1, f2 = evo.id(2)

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
assert(evo.defer())
assert(evo.cancel())

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
do
local p = evo.spawn()

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
assert(evo.depth() == 0)

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
local e = evo.id()
assert(evo.alive(e))

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
local e1, e2, f1, f2 = evo.id(4)

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
local f1, f2 = evo.id(2)

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
local entity_list

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
local id = evo.id()

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
local f = evo.id()
local e = evo.builder():set(f, 42):spawn()

View File

@@ -1,10 +1,18 @@
local evo = require 'evolved'
evo.debug_mode(true)
---@type ffilib?
local ffi = (function()
local ffi_loader = package and package.preload and package.preload['ffi']
local ffi = ffi_loader and ffi_loader()
return ffi
if package and package.loaded then
local loaded_ffi = package.loaded.ffi
if loaded_ffi then return loaded_ffi end
end
if package and package.preload then
local ffi_loader = package.preload.ffi
if ffi_loader then return ffi_loader() end
end
end)()
if not ffi then

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
local f1, f2 = evo.id(2)
evo.set(f1, evo.REQUIRES)

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
do
local e = evo.spawn()

View File

@@ -1,5 +1,7 @@
local evo = require 'evolved'
evo.debug_mode(true)
do
local f1, f2, f3 = evo.id(3)

View File

@@ -243,8 +243,13 @@ local __lua_table_new = (function()
if table_create then return function(nseq) return table_create(nseq or 0) end end
end
do
local table_new_loader = package and package.preload and package.preload['table.new']
if package and package.loaded then
local loaded_table_create = package.loaded.table and package.loaded.table.create
if loaded_table_create then return function(nseq) return loaded_table_create(nseq or 0) end end
end
if package and package.preload then
local table_new_loader = package.preload['table.new']
local table_new = table_new_loader and table_new_loader()
if table_new then return function(nseq) return table_new(nseq or 0, 0) end end
end
@@ -265,8 +270,13 @@ local __lua_table_clear = (function()
if table_clear then return table_clear end
end
do
local table_clear_loader = package and package.preload and package.preload['table.clear']
if package and package.loaded then
local loaded_table_clear = package.loaded.table and package.loaded.table.clear
if loaded_table_clear then return loaded_table_clear end
end
if package and package.preload then
local table_clear_loader = package.preload['table.clear']
local table_clear = table_clear_loader and table_clear_loader()
if table_clear then return table_clear end
end
@@ -299,8 +309,13 @@ local __lua_table_move = (function()
if table_move then return table_move end
end
do
local table_move_loader = package and package.preload and package.preload['table.move']
if package and package.loaded then
local loaded_table_move = package.loaded.table and package.loaded.table.move
if loaded_table_move then return loaded_table_move end
end
if package and package.preload then
local table_move_loader = package.preload['table.move']
local table_move = table_move_loader and table_move_loader()
if table_move then return table_move end
end