示例#1
0
def test_group_four_has_one_yes():
    assert count_yes_in_group(split_members(
        split_groups(sample_input)[3])) == 1
示例#2
0
def test_group_three_has_three_yes():
    assert count_yes_in_group(split_members(
        split_groups(sample_input)[2])) == 3
示例#3
0
def test_group_five_has_one_unanimous_yes():
    assert count_yes_in_group_unanimous(
        split_members(split_groups(sample_input)[4])) == 1
示例#4
0
def test_group_two_has_zero_unanimous_yes():
    assert count_yes_in_group_unanimous(
        split_members(split_groups(sample_input)[1])) == 0
示例#5
0
def test_group_five_has_one_member():
    assert len(split_members(split_groups(sample_input)[4])) == 1
示例#6
0
def test_group_two_has_three_member():
    assert len(split_members(split_groups(sample_input)[1])) == 3