コード例 #1
0
ファイル: test_npdist.py プロジェクト: skinnersrat/dit
def test_has_outcome2():
    d = Distribution(['0', '1'], [1, 0])
    assert not d.has_outcome('1', null=False)
コード例 #2
0
ファイル: test_npdist.py プロジェクト: chebee7i/dit
def test_has_outcome2():
    d = Distribution(['0', '1'], [1, 0])
    assert_false(d.has_outcome('1', null=False))
コード例 #3
0
ファイル: test_npdist.py プロジェクト: skinnersrat/dit
def test_has_outcome1():
    d = Distribution(['0', '1'], [1, 0])
    d.make_sparse()
    assert not d.has_outcome('1', null=False)
コード例 #4
0
ファイル: test_npdist.py プロジェクト: chebee7i/dit
def test_has_outcome1():
    d = Distribution(['0', '1'], [1, 0])
    d.make_sparse()
    assert_false(d.has_outcome('1', null=False))