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/message_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/message_spec.lua')
-rw-r--r-- | test/unit/message_spec.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/unit/message_spec.lua b/test/unit/message_spec.lua index afb572347f..7e92b5c857 100644 --- a/test/unit/message_spec.lua +++ b/test/unit/message_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 ffi = helpers.ffi local eq = helpers.eq @@ -35,23 +36,23 @@ describe('trunc_string', function() for _,t in ipairs(permutations) do describe('populates buf '..t.desc, function() - it('with a small string', function() + itp('with a small string', function() t.func('text', 'text') end) - it('with a medium string', function() + itp('with a medium string', function() t.func('a short text', 'a short text') end) - it('with a string of length == 1/2 room', function() + itp('with a string of length == 1/2 room', function() t.func('a text that fits', 'a text that fits', 34) end) - it('with a string exactly the truncate size', function() + itp('with a string exactly the truncate size', function() t.func('a text tha just fits', 'a text tha just fits') end) - it('with a string that must be truncated', function() + itp('with a string that must be truncated', function() t.func('a text that nott fits', 'a text t...nott fits') end) end) |