Skip to content

Commit b39c4bc

Browse files
committed
Add DISABLE_FREXP test option to disable builtin math.frexp
1 parent e4c0a67 commit b39c4bc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
-- cleanly if all of them passed; if any failed, reports the failed tests
77
-- on stdout and then raises an error.
88

9+
if arg and arg[1] == "DISABLE_FREXP" then
10+
table.remove(arg, 1)
11+
math.frexp = nil
12+
end
13+
914
local ok,test = pcall(require, "vstruct.test.common")
1015

1116
-- maybe we aren't installed, and just need to deduce a custom package.path
@@ -33,6 +38,7 @@ require "vstruct.test.compat1x"
3338
require "vstruct.test.fp-bigendian"
3439
require "vstruct.test.fp-littleendian"
3540
require "vstruct.test.error"
41+
require "vstruct.test.frexp"
3642
require "vstruct.test.regression"
3743

3844
if arg and #arg > 0 then

0 commit comments

Comments
 (0)