js-heap-spec
Heap specification library for JavaScript. Parent is aureooms/js-heap.
import ava from 'ava' ;
spec.test(
ava ,
[ [ "DummyHeap" , compare => new spec.DummyHeap(compare) ] ] ,
{
references : true ,
length : true ,
}
) ;
Description
This package contains a specification test suite for heap implementations such as aureooms/js-d-ary-heap, aureooms/js-pairing-heap, and aureooms/js-binomial-heap.