From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D61A226D79 for ; Wed, 24 Apr 2019 08:14:45 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m23mafQ0LAbD for ; Wed, 24 Apr 2019 08:14:45 -0400 (EDT) Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [94.100.177.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 95195266DB for ; Wed, 24 Apr 2019 08:14:45 -0400 (EDT) Date: Wed, 24 Apr 2019 15:14:34 +0300 From: Alexander Turenko Subject: [tarantool-patches] Re: [PATCH v2 1/1] tap: fix is_deeply box.NULL corner cases Message-ID: <20190424121433.54daf5yejqar3f5d@tkn_work_nb> References: <140e8187-8f84-c89d-10d8-57891e8f9353@tarantool.org> <20190424115713.dg5oqqyarg4fvich@tkn_work_nb> <0e66ac3b-9c9d-6097-fd95-c6ec9ae43273@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <0e66ac3b-9c9d-6097-fd95-c6ec9ae43273@tarantool.org> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: Vladislav Shpilevoy Cc: tarantool-patches@freelists.org, Kirill Shcherbatov On Wed, Apr 24, 2019 at 03:02:32PM +0300, Vladislav Shpilevoy wrote: > > > On 24/04/2019 14:57, Alexander Turenko wrote: > >> @@ -163,6 +173,7 @@ local function is_deeply(test, got, expected, message, extra) > >> extra = extra or {} > >> extra.got = got > >> extra.expected = expected > >> + extra.strict = test.strict > > > > The 'extra' parameter is needed to provide a user more information in > > case of a fail. Here we use it to push options for cmpdeeply(). I would > > add 'opts' parameter instead. > > > > If you do not like extra output about 'strict' value, then we > could make it 'nil' by default, not 'false', and it will not > be printed until someone starts to use it. I'm ok if it is consistent with other such parameters. Kirill said it is, so ok.