From 72a2bdba66a0cdfa3b3bea6d4f08f90b01e9c0d0 Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 10 Nov 2021 19:23:05 -0500 Subject: [PATCH] MathMin --- unit_tests/tests/lua/test_lua_basic.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/unit_tests/tests/lua/test_lua_basic.cpp b/unit_tests/tests/lua/test_lua_basic.cpp index b4d012034d..571d766972 100644 --- a/unit_tests/tests/lua/test_lua_basic.cpp +++ b/unit_tests/tests/lua/test_lua_basic.cpp @@ -13,6 +13,20 @@ TEST(LuaBasic, ReturnsNumber) { EXPECT_FLOAT_EQ(result, 5.5f); } +TEST(LuaBasic, MathMin) { +/* + auto script = R"( + function testFunc() + return min(1, 2) + end + )"; + + float result = testLuaReturnsNumber(script); + + EXPECT_FLOAT_EQ(result, 1.0f); +*/ +} + TEST(LuaBasic, ReturnsInteger) { auto script = R"( function testFunc()