Skip to content

Instantly share code, notes, and snippets.

Avatar

Iliyan Yakimov IliyanYakimov

View GitHub Profile
View s_hw.py
import unittest
import solution
class ExtractTypeTest(unittest.TestCase):
def test_python(self):
input = [('p', 1), ('y', 1), ('t', 1),
('h', 1), ('o', 1), ('n', 1)]
self.assertEqual("python", solution.extract_type(input, str))
View powers_of_two_remain.py
import unittest
import solution
class PowerOfTwoTests(unittest.TestCase):
def test_empty_list(self):
self.assertFalse(solution.powers_of_two_remain([]))
def test_multiple_numbers_in_list_true(self):
You can’t perform that action at this time.