Skip to content

Commit 16a32f0

Browse files
Use console.assert in examples
1 parent d75d7d7 commit 16a32f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import CRC32 from '@hqtsm/crc/crc-32/iso-hdlc';
5050
let crc = CRC32.init();
5151
crc = CRC32.update(crc, new TextEncoder().encode('123456789'));
5252
crc = CRC32.finalize(crc);
53-
console.log(crc.toString(16)); // cbf43926
53+
console.assert(crc.toString(16) === 'cbf43926');
5454
```
5555

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

6969
# Acknowledgements

0 commit comments

Comments
 (0)