From 2782fed879e72a85d360578531af9bb8747b0120 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 18 Jan 2014 23:10:49 -0500 Subject: [PATCH] Fix typo in tests --- tests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests.cpp b/tests.cpp index 8ec1a907..c4e546a7 100644 --- a/tests.cpp +++ b/tests.cpp @@ -231,12 +231,12 @@ TEST_CASE("tables/functions_variables", "Check if tables and function calls work lua.get("os").set_function("fun", &free_function); REQUIRE_NOTHROW(run_script(lua)); - // l-value, can optomize + // l-value, can optimise auto lval = object(); lua.get("os").set_function("fun", &object::operator(), lval); REQUIRE_NOTHROW(run_script(lua)); - // stateful lambda: non-convertible, unoptomizable + // stateful lambda: non-convertible, cannot be optimised int breakit = 50; lua.get("os").set_function("fun", [&breakit] () { @@ -246,11 +246,11 @@ TEST_CASE("tables/functions_variables", "Check if tables and function calls work ); REQUIRE_NOTHROW(run_script(lua)); - // r-value, cannot optomize + // r-value, cannot optimise lua.get("os").set_function("fun", &object::operator(), object()); REQUIRE_NOTHROW(run_script(lua)); - // r-value, cannot optomize + // r-value, cannot optimise auto rval = object(); lua.get("os").set_function("fun", &object::operator(), std::move(rval)); REQUIRE_NOTHROW(run_script(lua));