Skip to content

Instantly share code, notes, and snippets.

@arudova
Last active August 29, 2015 13:57
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save arudova/9388999 to your computer and use it in GitHub Desktop.
import unittest
from solution import wow_such_much, count_doge_words
class TestDoge(unittest.TestCase):
def test_suchmuch_from_negative(self):
self.assertEqual(wow_such_much(-5, 7),
['much', '-4', 'such', '-2', '-1', 'suchmuch', '1', '2', 'such', '4', 'much', 'such'])
def test_suchmuch_from_zero(self):
self.assertEqual(wow_such_much(0, 16),
['suchmuch', '1', '2', 'such', '4', 'much', 'such', '7', '8', 'such', 'much',
'11', 'such', '13', '14', 'suchmuch'])
if __name__ == '__main__':
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment