Commit | Line | Data |
---|---|---|
dc910fce DV |
1 | /** |
2 | * @fileoverview Assertions that chai doesn't provide out of the box. | |
3 | */ | |
4 | ||
5 | var assertDeepCloseTo = function(actualArray, expectedArray, epsilon) { | |
6 | assert.isArray(actualArray); | |
7 | assert.isArray(expectedArray); | |
8 | for (var i = 0; i < actualArray.length; i++) { | |
9 | assert.closeTo(actualArray[i], expectedArray[i], epsilon); | |
10 | } | |
11 | }; |