/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/lua/import_share_runme.lua
13 строк
529 B
Erez Geva
More Lua tests (#3405)
31 май 2026, 17:09
31 май 2026, 17:09
a1b3ca8
Код
Авторство
О чём код?
require("import_share_a") require("import_share_c") require("import_share_b") -- Test cross-module type cast: DenseMatrix (module B) to Operator (module A) local dm = import_share_b.DenseMatrix(100, 200) local height = import_share_a.Operator_Height(dm) assert(height == 100, "Expected 100, got " .. height) -- Test factory function: Make_DenseMatrix (module C) returns Operator* local op = import_share_c.Make_DenseMatrix(50, 60) height = import_share_a.Operator_Height(op) assert(height == 50, "Expected 50, got " .. height)