예제 #1
0
def test_reorder2():
    outcomes = ['00', '11', '22']
    pmf = [1 / 3] * 3
    sample_space = ('00', '01', '10', '11')
    with pytest.raises(InvalidOutcome):
        reorder(outcomes, pmf, sample_space)
예제 #2
0
def test_reorder2():
    outcomes = ['00', '11', '22']
    pmf = [1/3]*3
    sample_space = ('00', '01', '10', '11')
    with pytest.raises(InvalidOutcome):
        reorder(outcomes, pmf, sample_space)
예제 #3
0
def test_reorder1():
    outcomes = ['00', '11', '01']
    pmf = [1 / 3] * 3
    sample_space = ('00', '01', '10', '11')
    new = reorder(outcomes, pmf, sample_space)
    assert new[0] == ['00', '01', '11']
예제 #4
0
def test_reorder1():
    outcomes = ['00', '11', '01']
    pmf = [1/3]*3
    sample_space = ('00', '01', '10', '11')
    new = reorder(outcomes, pmf, sample_space)
    assert new[0] == ['00', '01', '11']