it('toss out non-numerics (NaN):', function() { var input = [1, 2, NaN], res = Lib.stdev(input); expect(res).toEqual(0.5); });
it('return sqrt(2/3) on input [-1, 0, 1]:', function() { var input = [-1, 0, 1], res = Lib.stdev(input); expect(res).toEqual(Math.sqrt(2 / 3)); });
it('toss out non-numerics (strings):', function() { var input = [1, 2, 'apple', 'orange'], res = Lib.stdev(input); expect(res).toEqual(0.5); });
it('return 0 on input [2, 2, 2, 2, 2]:', function() { var input = [2, 2, 2, 2], res = Lib.stdev(input); expect(res).toEqual(0); });