fix array of scalar xcode

This commit is contained in:
Michael Davidsaver
2020-05-18 18:46:25 -07:00
parent 609768a33d
commit a556e7e290
2 changed files with 31 additions and 5 deletions
+3 -1
View File
@@ -548,7 +548,9 @@ void testArrayXCode()
testDiag("%s", __func__);
testArrayXCodeT<uint32_t>("\x01\x02\x00", {});
testArrayXCodeT<uint32_t>("\x01\x02\x01\x12\x34\x56\x78", {0x12345678});
testArrayXCodeT<uint16_t>("\x01\x02\x02\x00\x01\xff\xff", {1u, 0xffff});
testArrayXCodeT<double>("\x01\x02\x01?\xf0\x00\x00\x00\x00\x00\x00", {1.0});
testArrayXCodeT<std::string>("\x01\x02\x02\x05hello\x05world", {"hello", "world"});
}
@@ -950,7 +952,7 @@ void testEmptyRequest()
MAIN(testxcode)
{
testPlan(110);
testPlan(116);
testSerialize1();
testDeserialize1();
testSimpleDef();