コード例 #1
0
ファイル: test_cake_thief.py プロジェクト: jmieding/python
def test_combine_all_tests():
    assert cake_heist_calculator(raw_cakes_6, capacity) == {(60, 50): 2}
    
コード例 #2
0
ファイル: test_cake_thief.py プロジェクト: jmieding/python
def test_optimize_weight():
    assert cake_heist_calculator(raw_cakes_5, capacity) == {(100, 60): 1}
コード例 #3
0
ファイル: test_cake_thief.py プロジェクト: jmieding/python
def test_find_highest_value_combination():
    assert cake_heist_calculator(raw_cakes_4, capacity) == {(60, 50): 2}
コード例 #4
0
ファイル: test_cake_thief.py プロジェクト: jmieding/python
def test_exclude_cakes_heavier_than_bag_capacity():
    assert cake_heist_calculator(raw_cakes_3, capacity) == {(60, 50): 2}
コード例 #5
0
ファイル: test_cake_thief.py プロジェクト: jmieding/python
def test_exclude_cakes_with_zero_weight():
    assert cake_heist_calculator(raw_cakes_2, capacity) == {(100, 60): 1}
コード例 #6
0
ファイル: test_cake_thief.py プロジェクト: jmieding/python
def test_one_cake():
    assert cake_heist_calculator(raw_cakes_1, capacity) == {(100, 60): 1}