github.com/assemblaj/gopher-lua@v0.0.0-20221116224352-d57295a0d9e8/_glua-tests/math.lua (about) 1 assert(math.fmod(13.5, 2) == 1.5) 2 assert(math.pow(7, 2) == 49) 3 4 local ok, msg = pcall(function() 5 math.max() 6 end) 7 assert(not ok and string.find(msg, "wrong number of arguments")) 8 9 local ok, msg = pcall(function() 10 math.min() 11 end) 12 assert(not ok and string.find(msg, "wrong number of arguments"))