migrate tests

This commit is contained in:
Xuan Son Nguyen
2026-08-21 22:29:03 +02:00
parent ea4b4b2862
commit 039426a696
10 changed files with 40 additions and 31 deletions
+1 -1
View File
@@ -2157,7 +2157,7 @@ static void test_tagged_args_with_embedded_quotes(testing & t) {
for (const auto & tool_def : tools) {
if (!tool_def.contains("function")) { continue; }
const auto & function = tool_def.at("function");
std::string name = function.at("name");
std::string name = function.at("name").get<std::string>();
const auto & params = function.at("parameters");
if (!params.contains("properties") || !params.at("properties").is_object()) { continue; }