I'm trying to compare two arrays of floating point numbers, and I can't get toBeCloseTo(<array>, <epsilon>) to work properly:
[code]
expectedWeights = [0.372, 1.860];
expect(actual.k).toBeCloseTo(expectedWeights, 1);
[results]
Expected [ 0.37209302325581395, 1.86046511627907 ] to be close to [ 0.372, 1.86 ], 1.
So I'm forced to iterate over the values doing toBeCloseTo on each of them.
I'm new to Jasmine, so pardon my ignorance. But I couldn't find this answer anywhere.
Thanks!