Skip to content

Instantly share code, notes, and snippets.

@pilat
pilat / bitsmap.test.ts
Created February 16, 2019 02:38
Working with bits map in TypeScript.
import * as assert from 'assert';
import { Bitsmap } from './bitsmap';
const BUFFER_MAX_SIZE = Bitsmap.MAX_BUFFER_LENGTH;
describe('Check params', () => {
it('Should throw errow when chunk size too small', () => {
assert.throws(