diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-11-13 20:07:45 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-13 20:07:45 +0530 |
commit | 6a4c6d83bacf5f03628a494778a30bce970f7cbc (patch) | |
tree | 219c2ce9c7c3c19b993ca11ca656f9221a36fd00 /tests | |
parent | 7d9ba09f5a4464072476b8992e43f5e5c30bde3a (diff) |
fix(ext/node): zlib.crc32() (#26856)
Fixes https://github.com/denoland/deno/issues/26845
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_node/zlib_test.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit_node/zlib_test.ts b/tests/unit_node/zlib_test.ts index 0eff95445..de2d2450d 100644 --- a/tests/unit_node/zlib_test.ts +++ b/tests/unit_node/zlib_test.ts @@ -7,6 +7,7 @@ import { brotliCompressSync, brotliDecompressSync, constants, + crc32, createBrotliCompress, createBrotliDecompress, createDeflate, @@ -225,3 +226,7 @@ Deno.test("gzip() and gzipSync() accept ArrayBuffer", async () => { const outputSync = gzipSync(buf); assert(outputSync instanceof Buffer); }); + +Deno.test("crc32()", () => { + assertEquals(crc32("hello world"), 222957957); +}); |