Code coverage report for lib/dataStructures/maxHeap.js

Statements: 100% (7 / 7)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (7 / 7)      Ignored: none     

All files » lib/dataStructures/ » maxHeap.js
1 2 3 4 5 6 7 8 9 10 11 12 131   1 15     1   1 178     1
var binaryHeap = require("./binaryHeap.js");
 
var maxHeap = function() {
	binaryHeap.apply(this, arguments);
};
 
maxHeap.prototype = new binaryHeap();
 
maxHeap.prototype.shouldSwap = function(childData, parentData) {
	return childData > parentData;
};
 
module.exports = maxHeap;