CoapPacket

- Added future test case
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-29 09:29:20 +02:00
parent d151d7b4a3
commit c39116807e
1 changed files with 20 additions and 1 deletions

View File

@ -841,5 +841,24 @@ unittest
}
}
/**
* Tests the minimum size required for a packet
* (Positive case)
*/
unittest
{
// FIXME: Actually make a better example
// ubyte[] testingIn = [0x41, 0x02, 0xcd, 0x47];
// 0x41, 0x02, 0xcd, 0x47
// try
// {
// CoapPacket packet = CoapPacket.fromBytes(testingIn);
// // TODO: Test
// assert(true);
// }
// catch(CoapException e)
// {
// assert(false);
// }
}