/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/lua/aggregate_runme.lua
10 строк
339 B
Erez Geva
More Lua tests (#3405)
31 май 2026, 17:09
31 май 2026, 17:09
a1b3ca8
Код
Авторство
О чём код?
local v=require("aggregate") -- Confirm that move() returns correct results under normal use assert(v.move(v.UP) == v.UP) assert(v.move(v.DOWN) == v.DOWN) assert(v.move(v.LEFT) == v.LEFT) assert(v.move(v.RIGHT) == v.RIGHT) -- Confirm that it raises an exception when the contract is violated assert(not pcall(function () v.move(0) end))