build: refresh toolchain and dependency wiring

This commit is contained in:
scawful
2025-12-22 14:45:31 -05:00
parent 7b72b2e3d4
commit df866b3f7f
18 changed files with 160 additions and 67 deletions

View File

@@ -0,0 +1,21 @@
#include "httplib.h"
#include "nlohmann/json.hpp"
#include "testing.h"
namespace yaze {
namespace test {
TEST(DependencySmokeTest, JsonAndHttpLibAvailable) {
nlohmann::json payload = nlohmann::json::parse(R"({"ok":true})");
EXPECT_TRUE(payload["ok"].get<bool>());
httplib::Client client("example.com");
httplib::Headers headers{{"X-Test", "1"}};
client.set_default_headers(headers);
auto header_it = headers.find("X-Test");
ASSERT_NE(header_it, headers.end());
EXPECT_EQ(header_it->second, "1");
}
} // namespace test
} // namespace yaze