From 934f55058d3c959724427801558f0b2b8d626217 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Tue, 9 May 2017 15:12:20 -0400 Subject: [PATCH] Of course LuaJIT woudl ruin everything. --- test_environments.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_environments.cpp b/test_environments.cpp index 4fee017b..1d00543e 100644 --- a/test_environments.cpp +++ b/test_environments.cpp @@ -216,6 +216,7 @@ TEST_CASE("environments/this_environment", "test various situations of pulling o }; sol::environment e(lua, sol::create, lua.globals()); + lua["x"] = 5; e["x"] = 20; SECTION("from Lua script") { int value = lua.script(code, e); @@ -230,6 +231,6 @@ TEST_CASE("environments/this_environment", "test various situations of pulling o SECTION("from C++, with no env") { sol::function f = lua["f"]; int value = f(10); - REQUIRE(value == 10); + REQUIRE(value == 15); } }