# HG changeset patch # User Kim Alvefur # Date 1545573172 -3600 # Node ID a726668b3c484a4cac7a4ab6bb4d0b83f4021a03 # Parent 8ad689b6d26fec0c536c498353c4f8f19520311d util.table: Add test for pack() diff -r 8ad689b6d26f -r a726668b3c48 spec/util_table_spec.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spec/util_table_spec.lua Sun Dec 23 14:52:52 2018 +0100 @@ -0,0 +1,10 @@ +local u_table = require "util.table"; +describe("util.table", function () + describe("pack()", function () + it("works", function () + assert.same({ "lorem", "ipsum", "dolor", "sit", "amet", n = 5 }, u_table.pack("lorem", "ipsum", "dolor", "sit", "amet")); + end); + end); +end); + +