Skip to content

Commit

Permalink
Add invalid key test for t.strictArray
Browse files Browse the repository at this point in the history
  • Loading branch information
osyrisrblx committed Jun 23, 2020
1 parent e2c5599 commit 246af7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/init.spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ return function()
assert(not fixedArrayCheck({1, 2, 3}))
assert(not fixedArrayCheck({10}))
assert(not fixedArrayCheck({"Hello", 10}))
assert(not fixedArrayCheck({ Foo = "Bar" }))

local fixedArrayCheck2 = t.strictArray(t.number, t.number, t.optional(t.string))

Expand Down

0 comments on commit 246af7c

Please sign in to comment.