Skip to content

Commit

Permalink
fix: core tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Oct 29, 2024
1 parent c430620 commit 2612cb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/values/Primitive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,12 @@ test("encodeBitMask() -> should correctly convert a numeric array into a bit mas
{
values: [1, 4, 5, 6, 8],
max: 8,
expected: Uint8Array.from([0b10111001]),
expected: Bytes.from([0b10111001]),
},
{
values: [1, 2, 10, 11],
max: 16,
expected: Uint8Array.from([0b11, 0b110]),
expected: Bytes.from([0b11, 0b110]),
},
];
for (const { values, max, expected } of tests) {
Expand All @@ -290,13 +290,13 @@ test("encodeBitMask() -> should respect the startValue too", (t) => {
values: [2, 4, 8],
max: 11,
startValue: 2,
expected: Uint8Array.from([0b01000101, 0]),
expected: Bytes.from([0b01000101, 0]),
},
{
values: [0, 2, 10, 11],
max: 19,
startValue: 0,
expected: Uint8Array.from([0b101, 0b1100, 0]),
expected: Bytes.from([0b101, 0b1100, 0]),
},
];
for (const { values, max, startValue, expected } of tests) {
Expand Down

0 comments on commit 2612cb1

Please sign in to comment.