CoapPacket (unit test)

- Fixed compilation error
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-29 10:13:41 +02:00
parent ceec2e20e7
commit 2fca10a7c4
1 changed files with 4 additions and 4 deletions

View File

@ -736,10 +736,10 @@ version(unittest)
*/
unittest
{
assert(CoapPacket.determineLenType(12) == CoapPacket.OptionLenType.ZERO_TO_TWELVE);
assert(CoapPacket.determineLenType(268) == CoapPacket.OptionLenType._8BIT_EXTENDED);
assert(CoapPacket.determineLenType(65804) == CoapPacket.OptionLenType._12_BIT_EXTENDED);
assert(CoapPacket.determineLenType(65804+1) == CoapPacket.OptionLenType.UPPER_PAYLOAD_MARKER);
assert(CoapPacket.determineLenType(12) == OptionLenType.ZERO_TO_TWELVE);
assert(CoapPacket.determineLenType(268) == OptionLenType._8BIT_EXTENDED);
assert(CoapPacket.determineLenType(65804) == OptionLenType._12_BIT_EXTENDED);
assert(CoapPacket.determineLenType(65804+1) == OptionLenType.UPPER_PAYLOAD_MARKER);
}
/**