From e8d00d874427d6c35513e473df3c001b9a128fd0 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 19 Feb 2011 06:15:15 -0800 Subject: [PATCH] test error conditions fixed by the last commit. --- scripts/tests/bson.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/tests/bson.lua b/scripts/tests/bson.lua index d655c4b55..35b08051c 100644 --- a/scripts/tests/bson.lua +++ b/scripts/tests/bson.lua @@ -14,6 +14,13 @@ function test_bson_create() 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() local r = region.create(0, 0, "mountain") attrib.create(r, 42)