aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-11 10:44:54 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-11 10:44:54 +0200
commit63fed0e85b72e27049ce14c80127859b387460dd (patch)
treee0542ae194c04cb904f323042090f78fe8b886f5 /test
parent91325080d96f721b290223420d224135cda40358 (diff)
fix write_cmd_req_set_state
Diffstat (limited to 'test')
-rw-r--r--test/pbdrv/write.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/pbdrv/write.cpp b/test/pbdrv/write.cpp
index de7e88a..31e5d8d 100644
--- a/test/pbdrv/write.cpp
+++ b/test/pbdrv/write.cpp
@@ -2,17 +2,13 @@
#include "pb-write.h"
-TEST(pbdrv, write) {
-
+TEST(pbdrv, write_cmd_req_set_state) {
pbdrv_buf_t buf = pbdrv_write_cmd_req_set_state({
.header = { .sender = 0xf0, },
.state = PB_GS_PLAYING,
});
- for (size_t i = 0; i < buf.size; i++) {
- printf("%02x ", buf.data[i] & 0xff);
- }
- printf("\n");
- ASSERT_TRUE(true);
+ ASSERT_NE(buf.data, nullptr);
+ ASSERT_GE(buf.size, 0);
}