mirror of https://github.com/deavmi/doap
CoapPacket (unit test)
- Updated to test with 3 bytes (but NOT 4)
This commit is contained in:
parent
4ec85231d5
commit
d151d7b4a3
|
@ -827,6 +827,18 @@ unittest
|
|||
{
|
||||
assert(true);
|
||||
}
|
||||
|
||||
testingIn = [ 0x41, 0x02, 0xcd];
|
||||
|
||||
try
|
||||
{
|
||||
CoapPacket packet = CoapPacket.fromBytes(testingIn);
|
||||
assert(false);
|
||||
}
|
||||
catch(CoapException e)
|
||||
{
|
||||
assert(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue