This commit is contained in:
2025-04-28 07:34:45 -04:00
parent 339ac5cfe5
commit 775212013f

View File

@@ -82,7 +82,11 @@ test "testing variable length zero copy struct" {
zcm.type = .relay;
zcm.length = 3;
std.debug.print("{any}\n", .{zcm});
std.debug.print("{any}\n", .{zcm.getSaprusTypePayload()});
std.debug.print("{any}\n", .{(try zcm.getSaprusTypePayload()).relay});
if (false) {
// Illegal behavior
std.debug.print("{any}\n", .{(try zcm.getSaprusTypePayload()).connection});
}
if (false) {
std.debug.print("{any}\n", .{zcm.getRelay()});
std.debug.print("{any}\n", .{zcm.getConnection()});