Merge pull request #794 from MCJack123/patch-7
Add the ability to call `cc.expect` directly
This commit is contained in:
commit
b21866fbff
|
@ -114,8 +114,8 @@ local function range(num, min, max)
|
||||||
return num
|
return num
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return setmetatable({
|
||||||
expect = expect,
|
expect = expect,
|
||||||
field = field,
|
field = field,
|
||||||
range = range,
|
range = range,
|
||||||
}
|
}, { __call = function(_, ...) return expect(...) end })
|
||||||
|
|
Loading…
Reference in New Issue