Skip to content

Commit

Permalink
Breaking | CoreMask getMask rename (#2)
Browse files Browse the repository at this point in the history
* minor rename

* more explicit naming

* bump version
  • Loading branch information
Szegoo authored Apr 3, 2024
1 parent b28c6d1 commit 297bd80
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 639 deletions.
6 changes: 3 additions & 3 deletions __tests__/coremask.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ describe('CoreMask utils work', () => {
});

test('fromChunk works', () => {
expect(CoreMask.fromChunk(40, 60).getMask()).toEqual('0x0000000000fffff00000');
expect(CoreMask.fromChunk(40, 60).toRawHex()).toEqual('0x0000000000fffff00000');
});

test('fromBin works', () => {
expect(
CoreMask.fromBin(
'11111111111111111111111111111111111111111111111111111111111111111111111111111111',
).getMask(),
).toRawHex(),
).toEqual(COMPLETE_MASK);

expect(
CoreMask.fromBin(
'00000000000000000000000000000000000000000000000000000000000000000000000000000000',
).getMask(),
).toRawHex(),
).toEqual(VOID_MASK);
});

Expand Down
Loading

0 comments on commit 297bd80

Please sign in to comment.