Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH 0/3] lua: table fixes
@ 2020-02-13 20:33 olegrok
  2020-02-13 20:33 ` [Tarantool-patches] [PATCH 1/3] lua: fix incorrect table.deepcopy __metatable handling olegrok
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: olegrok @ 2020-02-13 20:33 UTC (permalink / raw)
  To: tarantool-patches, imun, v.shpilevoy; +Cc: Oleg Babin

From: Oleg Babin <babinoleg@mail.ru>

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-02-20 11:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-13 20:33 [Tarantool-patches] [PATCH 0/3] lua: table fixes olegrok
2020-02-13 20:33 ` [Tarantool-patches] [PATCH 1/3] lua: fix incorrect table.deepcopy __metatable handling olegrok
2020-02-13 22:50   ` Vladislav Shpilevoy
2020-02-20 11:12   ` Igor Munkin
2020-02-13 20:33 ` [Tarantool-patches] [PATCH 2/3] lua: table.deepcopy ignores __pairs metamethod olegrok
2020-02-13 22:50   ` Vladislav Shpilevoy
2020-02-20 11:00   ` Igor Munkin
2020-02-13 20:33 ` [Tarantool-patches] [PATCH 3/3] tap: is_deeply " olegrok
2020-02-13 22:50   ` Vladislav Shpilevoy
2020-02-20 10:57   ` Igor Munkin
2020-02-13 22:50 ` [Tarantool-patches] [PATCH 0/3] lua: table fixes Vladislav Shpilevoy
2020-02-15 10:05   ` Oleg Babin
2020-02-15 15:35     ` Vladislav Shpilevoy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox