summaryrefslogtreecommitdiffstats
path: root/test/message/pack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/message/pack.cpp')
-rw-r--r--test/message/pack.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/message/pack.cpp b/test/message/pack.cpp
index d0a738a..7e6cf31 100644
--- a/test/message/pack.cpp
+++ b/test/message/pack.cpp
@@ -235,6 +235,13 @@ TEST(PackBasics, VectorUint8)
ASSERT_EQ(p.raw, k);
}
+TEST(PackBasics, VectorUnaligned)
+{
+ ipmi::message::Payload p;
+ EXPECT_EQ(p.pack(true, std::vector<uint8_t>{1}), 1);
+ EXPECT_EQ(p.raw, std::vector<uint8_t>{0b1});
+}
+
TEST(PackBasics, OptionalEmpty)
{
// an optional will only pack if the value is present
OpenPOWER on IntegriCloud