CoapPacket (unit test)

- Updated to test with 3 bytes (but NOT 4)
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-29 09:27:46 +02:00
parent 4ec85231d5
commit d151d7b4a3
1 changed files with 12 additions and 0 deletions

View File

@ -827,6 +827,18 @@ unittest
{
assert(true);
}
testingIn = [ 0x41, 0x02, 0xcd];
try
{
CoapPacket packet = CoapPacket.fromBytes(testingIn);
assert(false);
}
catch(CoapException e)
{
assert(true);
}
}