[Tarantool-patches] [PATCH 2/2] test: add regression test for table.clear()

sergeyb at tarantool.org sergeyb at tarantool.org
Tue Jul 28 16:52:24 MSK 2020


From: Sergey Bronnikov <sergeyb at tarantool.org>

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



More information about the Tarantool-patches mailing list