test error conditions fixed by the last commit.

This commit is contained in:
Enno Rehling 2011-02-19 06:15:15 -08:00
parent d033e7156c
commit e8d00d8744
1 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,13 @@ function test_bson_create()
end end
end end
function test_illegal_arg()
local a = attrib.create(nil, 42)
assert_equal(nil, a)
a = attrib.create("fred", 42)
assert_equal(nil, a)
end
function test_bson_readwrite() function test_bson_readwrite()
local r = region.create(0, 0, "mountain") local r = region.create(0, 0, "mountain")
attrib.create(r, 42) attrib.create(r, 42)