More tests.
This commit is contained in:
parent
96e1d36f37
commit
118ab70612
3
test.lua
3
test.lua
@ -159,6 +159,9 @@ test("Testing is_instance", function()
|
|||||||
fv = FooVec(1,2)
|
fv = FooVec(1,2)
|
||||||
assert(FooVec:is_instance(fv))
|
assert(FooVec:is_instance(fv))
|
||||||
assert(not FooVec:is_instance(v))
|
assert(not FooVec:is_instance(v))
|
||||||
|
assert(not FooVec:is_instance("asdf"))
|
||||||
|
assert(not FooVec:is_instance({}))
|
||||||
|
assert(not FooVec:is_instance(5))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
test("Testing spoofing", function()
|
test("Testing spoofing", function()
|
||||||
|
Loading…
Reference in New Issue
Block a user