Example #1
0
def test_potter_level_1():
  assert_equals( potter_level([1,2], 1), 8 * 2 )
  assert_equals( potter_level([1,1], 1), 8 * 2 )
  assert_equals( potter_level([1,5], 1), 8 * 2 )
Example #2
0
def test_potter_level45():
    assert_equals( potter_level([1,2,3,4,5], 4), 8 * 4 * .8 + 8 )
Example #3
0
def test_potter_level_3():
  assert_equals( potter_level([1,2,3], 3), 8 * 3 * 0.9 )
  assert_equals( potter_level([1,1,1], 3), 8 * 3 )
  assert_equals( potter_level([1,1,3], 3), 8 * 2 * .95 + 8 )
Example #4
0
def test_potter_level4():
  assert_equals( potter_level([1,2,3,4], 4),  8 * 4 * .8)
  assert_equals( potter_level([1,1,1,1], 4),  8 * 4)
  assert_equals( potter_level([1,1,3,4], 4),  8 * 3 * .9 +8 )
Example #5
0
def test_potter_level_2():
  assert_equals( potter_level([1,2], 2), 8 * 2 * 0.95 )
  assert_equals( potter_level([1,1], 2), 8 * 2 )
  assert_equals( potter_level([1,5], 2), 8 * 2 * 0.95 )