Files
2025-10-13 18:16:14 +02:00

18 lines
327 B
C++

#include <rfl.hpp>
#include <rfl/json.hpp>
#include <string>
#include "write_and_read.hpp"
namespace test_binary {
struct TestStruct {
rfl::Binary<uint8_t> binary;
};
TEST(json, test_binary) {
const auto test = TestStruct{.binary = 30};
write_and_read(test, R"({"binary":"00011110"})");
}
} // namespace test_binary