diff --git a/test/expect-0.2.0-ol3/expect.js b/test/expect-0.2.0-ol3/expect.js index 052f9a1df2..d8be00a0f1 100644 --- a/test/expect-0.2.0-ol3/expect.js +++ b/test/expect-0.2.0-ol3/expect.js @@ -371,6 +371,20 @@ return this; }; + /** + * Checks if the array sort of equals another array. + * + * @api public + */ + + Assertion.prototype.arreql = function (obj) { + this.assert( + goog.array.equals(this.obj, obj) + , function(){ return 'expected ' + i(this.obj) + ' to sort of equal ' + i(obj) } + , function(){ return 'expected ' + i(this.obj) + ' to sort of not equal ' + i(obj) }); + return this; + }; + /** * Checks if the obj sortof equals another. *