diff --git a/tests.cpp b/tests.cpp index 789c1d21..24ff464a 100644 --- a/tests.cpp +++ b/tests.cpp @@ -199,7 +199,7 @@ TEST_CASE("tables/functions_variables", "Check if tables and function calls work // l-value, can optomize auto lval = object(); lua.get("os").set_function("fun", &object::operator(), lval); - REQUIRE_NOTHROW((lua)); + REQUIRE_NOTHROW(run_script(lua)); // stateful lambda: non-convertible, unoptomizable int breakit = 50;