Skip to content

Commit

Permalink
Lua 5.1 unpack compat for ewmh-wm_moveresize test
Browse files Browse the repository at this point in the history
  • Loading branch information
phantamanta44 committed Oct 3, 2023
1 parent 6bb8d68 commit 71cfc9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test-ewmh-wm_moveresize.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local test_client = require("_client")
local placement = require("awful.placement")
local unpack = unpack or table.unpack -- luacheck: globals unpack (compatibility with Lua 5.1)

-- Testing utils
local signals_of_interest = {
Expand All @@ -13,7 +14,7 @@ local function assert_signal(sig_name, asserts)
local sig_data = signal_buffer[sig_name]
assert(sig_data ~= nil, "expected signal: " .. sig_name)
if asserts then
asserts(table.unpack(sig_data))
asserts(unpack(sig_data))
end
signal_buffer = {}
end
Expand Down

0 comments on commit 71cfc9e

Please sign in to comment.