def test_std5(): obs = std([11.0, 11.0, 11.0, 11.0, 11.0, 11.0]) exp = 0.0 assert obs == exp
def test_std4(): obs = std([1.0, 2.0, 3.0, 4.0, 5.0]) exp = 1.41421 assert_allclose(obs, exp, atol=0.00001, rtol=0)
def test_std2(): obs = std([]) exp = 0.0 assert obs == exp
def test_std3(): obs = std([5.0]) exp = 0.0 assert obs == exp
def test_std1(): obs = std([0.0, 2.0]) exp = 1.0 assert obs == exp