lune/tests/ffi/isInteger.luau
2024-10-13 05:09:31 +00:00

10 lines
241 B
Text

--!nocheck
--!nolint
local ffi = require("@lune/ffi")
local int = 0b1
local float = 0.5
assert(ffi.isInteger(int) == true, "ffi.isInteger(int) == true failed")
assert(ffi.isInteger(float) == false, "ffi.isInteger(float) == false failed")