aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-03-11 23:26:33 +0300
committerZyX <kp-pav@yandex.ru>2017-03-11 23:26:33 +0300
commita54be846cf0df18af9d634b180edb7b92f7249fc (patch)
tree1f619ea3aaad1ecaa59ee13f80270053641ece38
parentec730daee9bbdc34e250dea3beb7c15e6e7927dc (diff)
downloadrneovim-a54be846cf0df18af9d634b180edb7b92f7249fc.tar.gz
rneovim-a54be846cf0df18af9d634b180edb7b92f7249fc.tar.bz2
rneovim-a54be846cf0df18af9d634b180edb7b92f7249fc.zip
unittests: Update test/unit/message_spec.lua
-rw-r--r--test/unit/message_spec.lua13
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)