New tile queue implementation (heapify-powered)
This commit is contained in:
@@ -4,6 +4,12 @@ beforeEach(function() {
|
||||
toBeA: function(type) {
|
||||
return this.actual instanceof type;
|
||||
},
|
||||
toBeGreaterThanOrEqualTo: function(other) {
|
||||
return this.actual >= other;
|
||||
},
|
||||
toBeLessThanOrEqualTo: function(other) {
|
||||
return this.actual <= other;
|
||||
},
|
||||
toRoughlyEqual: function(other, tol) {
|
||||
return Math.abs(this.actual - other) <= tol;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user