mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 09:58:03 +00:00
@@ -1,12 +1,13 @@
|
||||
from nose.tools import assert_equal
|
||||
import unittest
|
||||
|
||||
|
||||
class Challenge(object):
|
||||
class Challenge(unittest.TestCase):
|
||||
|
||||
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)
|
||||
self.assertEqual(solution(0, [1, 2]), 0)
|
||||
self.assertEqual(solution(100, [1, 2, 3]), 884)
|
||||
self.assertEqual(solution(1000, range(1, 101)),
|
||||
15658181104580771094597751280645)
|
||||
print('Success: test_coin_change_ways')
|
||||
|
||||
|
||||
@@ -16,4 +17,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user