()
| 59 | } |
| 60 | |
| 61 | async function testZstdCompatWithZlib() { |
| 62 | const zstdDecompress = promisify(zlib.zstdDecompress); |
| 63 | |
| 64 | const input = 'Cross-compat zstd test. '.repeat(100); |
| 65 | const compressed = await bytes(pull(from(input), compressZstd())); |
| 66 | |
| 67 | const decompressed = await zstdDecompress(compressed); |
| 68 | assert.strictEqual(decompressed.toString(), input); |
| 69 | } |
| 70 | |
| 71 | // ============================================================================= |
| 72 | // Reverse compat: compress with zlib, decompress with new streams |
no test coverage detected
searching dependent graphs…