From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp49.i.mail.ru (smtp49.i.mail.ru [94.100.177.109]) (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 5B0C5445323 for ; Tue, 28 Jul 2020 16:52:55 +0300 (MSK) From: sergeyb@tarantool.org Date: Tue, 28 Jul 2020 16:52:24 +0300 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 2/2] test: add regression test for table.clear() List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org, alexander.turenko@tarantool.org From: Sergey Bronnikov Closes #5210 --- test/box-tap/gh-5210-table-clear.test.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 test/box-tap/gh-5210-table-clear.test.lua diff --git a/test/box-tap/gh-5210-table-clear.test.lua b/test/box-tap/gh-5210-table-clear.test.lua new file mode 100755 index 000000000..88f773b22 --- /dev/null +++ b/test/box-tap/gh-5210-table-clear.test.lua @@ -0,0 +1,10 @@ +#!/usr/bin/env tarantool + +local tap = require('tap') +local test = tap.test('gh-5210-table-clear') + +test:plan(1) +t = {a = 1, b = 2} +test:is(table.clear(t), nil, 'table clear') + +os.exit(test:check() and 0 or 1) -- 2.26.2