diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-12 10:52:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-12 10:52:13 +0100 |
commit | c8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c (patch) | |
tree | d993945c472a610a265baa79d714c6d32f149f14 /test/unit/memory_spec.lua | |
parent | b2b15e6e137d7be2b01bf2174791f36bd12981bd (diff) | |
parent | 48e7a83447c0a1a59a110b5ca9e712f560fd9e03 (diff) | |
download | rneovim-c8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c.tar.gz rneovim-c8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c.tar.bz2 rneovim-c8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c.zip |
Merge #6214 from ZyX-I/split-eval'/isolated-unittests
Run all unit tests in separate processes
Diffstat (limited to 'test/unit/memory_spec.lua')
-rw-r--r-- | test/unit/memory_spec.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit/memory_spec.lua b/test/unit/memory_spec.lua index 73a32724ef..bd72c8bf47 100644 --- a/test/unit/memory_spec.lua +++ b/test/unit/memory_spec.lua @@ -1,4 +1,5 @@ -local helpers = require("test.unit.helpers") +local helpers = require("test.unit.helpers")(after_each) +local itp = helpers.gen_itp(it) local cimport = helpers.cimport local cstr = helpers.cstr @@ -26,7 +27,7 @@ describe('xstrlcat()', function() return ffi.string(dst_cstr) end - it('concatenates strings', function() + itp('concatenates strings', function() eq('ab', test_xstrlcat('a', 'b', 3)) eq('ab', test_xstrlcat('a', 'b', 4096)) eq('ABCיהZdefgiיהZ', test_xstrlcat('ABCיהZ', 'defgiיהZ', 4096)) @@ -34,7 +35,7 @@ describe('xstrlcat()', function() eq('a', test_xstrlcat('a', '', 4096)) end) - it('concatenates overlapping strings', function() + itp('concatenates overlapping strings', function() eq('abcabc', test_xstrlcat_overlap('abc', 0, 7)) eq('abca', test_xstrlcat_overlap('abc', 0, 5)) eq('abcb', test_xstrlcat_overlap('abc', 1, 5)) @@ -42,7 +43,7 @@ describe('xstrlcat()', function() eq('abcabc', test_xstrlcat_overlap('abc', 0, 2343)) end) - it('truncates if `dsize` is too small', function() + itp('truncates if `dsize` is too small', function() eq('a', test_xstrlcat('a', 'b', 2)) eq('', test_xstrlcat('', 'b', 1)) eq('ABCיהZd', test_xstrlcat('ABCיהZ', 'defgiיהZ', 10)) |