Skip to content

Commit

Permalink
Test inherit endian
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOMara committed Nov 14, 2024
1 parent 41712e0 commit ae39c1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions member/struct.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ Deno.test('memberStruct', () => {
test.beta.beta = 0x23456789;
test.gamma.beta = 0x34567890;

assertEquals(test.alpha.littleEndian, true);
assertEquals(test.beta.littleEndian, false);
assertEquals(test.gamma.littleEndian, true);
assertEquals(test.alpha.beta, 0x12345678);
assertEquals(test.beta.beta, 0x23456789);
assertEquals(test.gamma.beta, 0x34567890);
Expand All @@ -59,6 +62,9 @@ Deno.test('memberStruct', () => {
test.beta.beta = 0x23456789;
test.gamma.beta = 0x34567890;

assertEquals(test.alpha.littleEndian, true);
assertEquals(test.beta.littleEndian, false);
assertEquals(test.gamma.littleEndian, false);
assertEquals(test.alpha.beta, 0x12345678);
assertEquals(test.beta.beta, 0x23456789);
assertEquals(test.gamma.beta, 0x34567890);
Expand Down

0 comments on commit ae39c1b

Please sign in to comment.