Skip to content

Commit 13503ec

Browse files
committed
tests/lapi: add missed unpack defintion
Follows up commit db2091f ("tests/lapi: add tests for io functions").
1 parent acd0cc9 commit 13503ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/lapi/io_torture_test.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ local test_lib = require("lib")
2424
-- The maximum file size is 1Mb (1000 * 1000).
2525
local MAX_N = 1e3
2626

27+
local unpack = unpack or table.unpack
28+
2729
local function io_seek(self)
2830
local SEEK_MODE = {
2931
"set", -- Base is position 0 (beginning of the file).

0 commit comments

Comments
 (0)