From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp48.i.mail.ru (smtp48.i.mail.ru [94.100.177.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 4E456469719 for ; Thu, 13 Feb 2020 23:34:04 +0300 (MSK) From: olegrok@tarantool.org Date: Thu, 13 Feb 2020 23:33:50 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/3] lua: table fixes List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, imun@tarantool.org, v.shpilevoy@tarantool.org Cc: Oleg Babin From: Oleg Babin This patchset fixes three problems. Two first are bugs in table.deepcopy function. The third is similar to the second (because the root of problem is a __pairs metamethod) that I found then worked on the second commit. Branch: https://github.com/tarantool/tarantool/tree/olegrok/table-fixes Oleg Babin (3): lua: fix incorrect table.deepcopy __metatable handling lua: table.deepcopy ignores __pairs metamethod tap: is_deeply ignores __pairs metamethod src/lua/table.lua | 9 ++++++-- src/lua/tap.lua | 9 +++++--- test/app-tap/table.test.lua | 44 ++++++++++++++++++++++++++++++++++++- test/app-tap/tap.result | 6 +++-- test/app-tap/tap.test.lua | 24 +++++++++++++++++++- 5 files changed, 83 insertions(+), 9 deletions(-) -- 2.23.0