mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-09 10:58:02 +00:00
@@ -1,7 +1,7 @@
|
||||
from nose.tools import assert_equal
|
||||
import unittest
|
||||
|
||||
|
||||
class TestPowerSet(object):
|
||||
class TestPowerSet(unittest.TestCase):
|
||||
|
||||
def test_power_set(self):
|
||||
input_set = ''
|
||||
@@ -27,7 +27,7 @@ class TestPowerSet(object):
|
||||
def run_test(self, input_set, expected):
|
||||
combinatoric = Combinatoric()
|
||||
result = combinatoric.find_power_set(input_set)
|
||||
assert_equal(result, expected)
|
||||
self.assertEqual(result, expected)
|
||||
|
||||
|
||||
def main():
|
||||
@@ -36,4 +36,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user