File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3296,6 +3296,12 @@ void FieldsTestSuite::test69()
32963296 TS_ASSERT_EQUALS(field.length(), (field.value().size() * 2) + 1U);
32973297 TS_ASSERT_EQUALS(field.value()[0].value(), 0x0a0b);
32983298 TS_ASSERT_EQUALS(field.value()[1].value(), 0x0c0d);
3299+
3300+ static const char Buf4[] = {
3301+ 0x3, 0xa, 0xb, 0xc
3302+ };
3303+ static const std::size_t Buf4Size = std::extent<decltype(Buf)>::value;
3304+ field = readWriteField<Field>(Buf4, Buf4Size, comms::ErrorStatus::InvalidMsgData);
32993305}
33003306
33013307using Test70_FieldBase = comms::Field<comms::option::BigEndian>;
@@ -4333,6 +4339,7 @@ void FieldsTestSuite::test88()
43334339 TS_ASSERT_EQUALS(std::get<1>(bundle0.value()).value(), "hello");
43344340 TS_ASSERT_EQUALS(std::get<0>(bundle1.value()).value(), 2U);
43354341 TS_ASSERT_EQUALS(std::get<1>(bundle1.value()).value(), "bla");
4342+ TS_ASSERT_EQUALS(readIter, &Buf[0] + BufSize);
43364343
43374344 static const char ExpectedBuf[] = {
43384345 0x2,
You can’t perform that action at this time.
0 commit comments