Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stevedonovan/Penlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/utils-enum_spec.lua')
-rw-r--r--spec/utils-enum_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/utils-enum_spec.lua b/spec/utils-enum_spec.lua
index 21fde62..dbe6954 100644
--- a/spec/utils-enum_spec.lua
+++ b/spec/utils-enum_spec.lua
@@ -24,6 +24,10 @@ describe("pl.utils", function ()
assert.has.error(function()
t = enum("hello", true, "world")
end, "argument 2 expected a 'string', got a 'boolean'")
+ -- no holes
+ assert.has.error(function()
+ t = enum("hello", nil, "world")
+ end, "argument 2 expected a 'string', got a 'nil'")
end)