mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-30 21:18:34 +00:00
7ce9f85b39
This bug was introduced in:
db8284f5fc
We've removed the patch in our updated Lua v5.4.6 branch.
17 lines
506 B
Lua
17 lines
506 B
Lua
-- Copyright (C) 2018 David Capello
|
|
--
|
|
-- This file is released under the terms of the MIT license.
|
|
-- Read LICENSE.txt for more information.
|
|
|
|
assert(100 == math.abs(-100))
|
|
assert(100 == math.min(100, 200, 300))
|
|
assert(300 == math.max(100, 200, 300))
|
|
assert(50 == math.fmod(250, 100))
|
|
assert(3141 == math.floor(1000*math.pi))
|
|
|
|
-- Add tests for integer <-> number comparisons
|
|
assert(math.floor(0.5) == 0)
|
|
assert(math.floor(0.5) == 0.0)
|
|
assert(math.floor(0.5) ~= 0.5)
|
|
assert(math.floor(0.5)+0.1-0.1 ~= 0.5)
|