Skip to content

Commit

Permalink
Use console.assert in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOMara committed Nov 20, 2024
1 parent d75d7d7 commit 16a32f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import CRC32 from '@hqtsm/crc/crc-32/iso-hdlc';
let crc = CRC32.init();
crc = CRC32.update(crc, new TextEncoder().encode('123456789'));
crc = CRC32.finalize(crc);
console.log(crc.toString(16)); // cbf43926
console.assert(crc.toString(16) === 'cbf43926');
```

## CRC-64/XZ
Expand All @@ -63,7 +63,7 @@ import CRC64 from '@hqtsm/crc/crc-64/xz';
let crc = CRC64.init();
crc = CRC64.update(crc, new TextEncoder().encode('123456789'));
crc = CRC64.finalize(crc);
console.log(crc.toString(16)); // 995dc9bbdf1939fa
console.assert(crc.toString(16) === '995dc9bbdf1939fa');
```

# Acknowledgements
Expand Down

0 comments on commit 16a32f0

Please sign in to comment.