Test per section

This commit is contained in:
ThePhD 2016-08-17 15:50:19 -04:00
parent f256afffa3
commit 8095c73428

View File

@ -988,6 +988,7 @@ TEST_CASE("usertype/no_constructor", "make sure lua types cannot be constructed
"v", &thing::v
, sol::call_constructor, sol::no_constructor
);
REQUIRE_THROWS(lua.script("t = thing.new()"));
}
SECTION("order2")
@ -996,6 +997,7 @@ TEST_CASE("usertype/no_constructor", "make sure lua types cannot be constructed
, sol::call_constructor, sol::no_constructor
, "v", &thing::v
);
REQUIRE_THROWS(lua.script("t = thing.new()"));
}
REQUIRE_THROWS(lua.script("t = thing.new()"));