diff options
author | Daniel Hahler <git@thequod.de> | 2019-08-21 02:32:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-21 02:32:20 +0200 |
commit | 47e27a4f5b2b2ae20e20a51a6cf0f76078c28698 (patch) | |
tree | 5c09c34ee2d7a2f588222a7edcc30aa96a2ea8fa /test/helpers.lua | |
parent | 7adea68c1eab6ba71344aa24aaf5026b824d7ea1 (diff) | |
download | rneovim-47e27a4f5b2b2ae20e20a51a6cf0f76078c28698.tar.gz rneovim-47e27a4f5b2b2ae20e20a51a6cf0f76078c28698.tar.bz2 rneovim-47e27a4f5b2b2ae20e20a51a6cf0f76078c28698.zip |
tests: support msg with global_helpers.ok (#10820)
Ref: https://github.com/neovim/neovim/pull/10768#discussion_r315904175
Co-Authored-By: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'test/helpers.lua')
-rw-r--r-- | test/helpers.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/helpers.lua b/test/helpers.lua index e14bcff2c8..ce5e8b9c04 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -59,8 +59,8 @@ end function module.neq(expected, actual, context) return assert.are_not.same(expected, actual, context) end -function module.ok(res) - return assert.is_true(res) +function module.ok(res, msg) + return assert.is_true(res, msg) end function module.near(actual, expected, tolerance) return assert.is.near(actual, expected, tolerance) |