mirror of
https://github.com/jwetzell/rttrp-js.git
synced 2026-09-10 16:39:35 +00:00
add encode test for little endian header
This commit is contained in:
@@ -12,6 +12,15 @@ const goodTests = [
|
|||||||
return Encoders.RTTrPHeader(0x4334, 2, 0x12345678, 0, 0x12345678, [], false);
|
return Encoders.RTTrPHeader(0x4334, 2, 0x12345678, 0, 0x12345678, [], false);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
description: 'RTTrP Header Little Endian',
|
||||||
|
expected: new Uint8Array([
|
||||||
|
0x54, 0x41, 0x34, 0x43, 0x00, 0x02, 0x78, 0x56, 0x34, 0x12, 0x00, 0x12, 0x00, 0x78, 0x56, 0x34, 0x12, 0x00,
|
||||||
|
]),
|
||||||
|
bytes: () => {
|
||||||
|
return Encoders.RTTrPHeader(0x4334, 2, 0x12345678, 0, 0x12345678, [], true);
|
||||||
|
},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
describe('RTTrP Message Encoding', () => {
|
describe('RTTrP Message Encoding', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user