Index: test/JsValue.cpp |
diff --git a/test/JsValue.cpp b/test/JsValue.cpp |
index cbecfe0f7ce2c6d14646edafc50694de478609b9..c1c9add641c1fa7d6b2d4f55ee3dcceb74ce8585 100644 |
--- a/test/JsValue.cpp |
+++ b/test/JsValue.cpp |
@@ -205,6 +205,12 @@ TEST_F(JsValueTest, FunctionValue) |
ASSERT_EQ("2/5/xyz", value->Call(params, thisPtr)->AsString()); |
} |
+TEST_F(JsValueTest, JsValueCallSignleArg) |
+{ |
+ auto func = jsEngine->Evaluate("(function(arg) {return arg * 2;})"); |
+ EXPECT_EQ(10, func->Call(*jsEngine->NewValue(5))->AsInt()); |
+} |
+ |
TEST_F(JsValueTest, ThrowingCoversion) |
{ |
const std::string source("\ |