aboutsummaryrefslogtreecommitdiff
path: root/tests/assert.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/assert.lua')
-rw-r--r--tests/assert.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/assert.lua b/tests/assert.lua
index 85febfb..7bb4233 100644
--- a/tests/assert.lua
+++ b/tests/assert.lua
@@ -6,7 +6,7 @@
6-- 6--
7-- This module allows shorthand use s.a. 'assert.table()' for asserting 7-- This module allows shorthand use s.a. 'assert.table()' for asserting
8-- variable types, and is also being used by Lua-super constraints system 8-- variable types, and is also being used by Lua-super constraints system
9-- for testing function parameter & return types. 9-- for testing function argument & return types.
10-- 10--
11-- All in all, a worthy module and could be part of Lua future versions. 11-- All in all, a worthy module and could be part of Lua future versions.
12-- 12--
@@ -182,7 +182,7 @@ assert=
182 return v 182 return v
183 end, 183 end,
184 184
185 -- Range assertion, with extra parameters per instance 185 -- Range assertion, with extra arguments per instance
186 -- 186 --
187 -- Note: values may be of _any_ type that can do >=, <= comparisons. 187 -- Note: values may be of _any_ type that can do >=, <= comparisons.
188 -- 188 --
@@ -240,7 +240,7 @@ assert=
240 end 240 end
241 end 241 end
242 242
243 _assert( type(tbl)=="table", "Wrong parameter to assert['{}']" ) 243 _assert( type(tbl)=="table", "Wrong argument to assert['{}']" )
244 244
245 return function( v, msg, lev ) 245 return function( v, msg, lev )
246 lev= (lev or 1)+1 246 lev= (lev or 1)+1