mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-14 05:18:02 +00:00
Renamed coinchange to coin_change.
This commit is contained in:
@@ -3,16 +3,16 @@ from nose.tools import assert_equal
|
||||
|
||||
class Challenge(object):
|
||||
|
||||
def test_coinchange_ways(self,solution):
|
||||
def test_coin_change_ways(self,solution):
|
||||
assert_equal(solution(0, [1, 2]), 0)
|
||||
assert_equal(solution(100, [1, 2, 3]), 884)
|
||||
assert_equal(solution(1000, range(1, 101)), 15658181104580771094597751280645)
|
||||
print('Success: test_coinchange_ways')
|
||||
print('Success: test_coin_change_ways')
|
||||
|
||||
|
||||
def main():
|
||||
test = Challenge()
|
||||
test.test_coinchange_ways(change_ways)
|
||||
test.test_coin_change_ways(change_ways)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user