build: reconcile module dependency closures, Log.hpp ownership, and consumer tests (X-BASE-03)

This commit is contained in:
faumaray committed 2026-11-24 02:28:33 +03:00
1 parent e385746b74
commit cd6fc7e5f5
19 files changed
+318 -52

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
#include <Void/Binary/Reader.hpp>
#include <Void/Functional/Result.hpp>
#include <Void/Math/Numeric.hpp>
#include <Void/Text/Str.hpp>
#include <Void/Time/Stopwatch.hpp>
#include <array>
#include <bit>
#include <cstddef>
#include <cstdint>
int main()
{
const auto r = Void::Numeric::checked_mul(6, 7);
if (!r || *r != 42) {
return 1;
}
if (Void::Str::to_upper("ok") != "OK") {
return 1;
}
const std::array bytes{std::byte{0x2A}};
Void::Binary::Reader reader{bytes};
const auto b = reader.read<std::uint8_t>(std::endian::big);
Void::Time::Stopwatch sw;
sw.start();
(void)sw.stop();
const auto res = Void::Result::ok(b.value_or(0));
return res && *res == 42 ? 0 : 1;
}