コード例 #1
0
def test_csum():
    x = np.array([1, 2, 3], dtype=np.double)
    s = csum(x)
    assert_almost_equal(s, 6.)
コード例 #2
-1
ファイル: testfunc.py プロジェクト: bks/probfit
def test_csum():
    x = np.array([1, 2, 3], dtype=np.double)
    s = csum(x)
    assert_almost_equal(s, 6.)
コード例 #3
-1
ファイル: test_func.py プロジェクト: vincecr0ft/probfit
def test_csum():
    x = np.array([1, 2, 3], dtype=np.double)
    s = csum(x)
    assert_allclose(s, 6.)