mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Fix C++ test
This commit is contained in:
parent
63cf84d21f
commit
7c1dbb949b
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ SCENARIO("Invoke callback")
|
|||
auto instance = result->create();
|
||||
REQUIRE(instance->set_callback("foo", [](auto args) {
|
||||
SharedString arg1 = *args[0].to_string();
|
||||
double arg2 = *args[1].to_number();
|
||||
int arg2 = int(*args[1].to_number());
|
||||
std::string res = std::string(arg1) + ":" + std::to_string(arg2);
|
||||
return Value(SharedString(res));
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue