github.com/tul/gopher-lua@v0.0.0-20181008131706-f6fcaab0c612/_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"))