Remove local from variable in test.

This commit is contained in:
Rapptz 2014-09-07 01:06:08 -04:00
parent e015dace71
commit 0a2050769c

View File

@ -863,7 +863,7 @@ TEST_CASE("regressions/one", "issue number 48") {
sol::state lua; sol::state lua;
lua.new_userdata<vars>("vars", "boop", &vars::boop); lua.new_userdata<vars>("vars", "boop", &vars::boop);
REQUIRE_NOTHROW(lua.script("local beep = vars.new()\n" REQUIRE_NOTHROW(lua.script("beep = vars.new()\n"
"beep.boop = 1")); "beep.boop = 1"));
// test for segfault // test for segfault
auto my_var = lua.get<vars>("beep"); auto my_var = lua.get<vars>("beep");