jmportilla / Python-for-Algorithms--Data-Structures--and-Interviews

Files for Udemy Course on Algorithms and Data Structures
2.54k stars 2.37k forks source link

AssertionError #9

Open jsmlau opened 6 years ago

jsmlau commented 6 years ago

AssertionError Traceback (most recent call last)

in () 13 # Run Tests 14 t = AnagramTest() ---> 15 t.test(anagram) in test(self, sol) 4 5 def test(self,sol): ----> 6 assert_equal(sol('go go go','gggooo'),True) 7 assert_equal(sol('abc','cba'),True) 8 assert_equal(sol('hi man','hi man'),True) /anaconda3/lib/python3.6/unittest/case.py in assertEqual(self, first, second, msg) 827 """ 828 assertion_func = self._getAssertEqualityFunc(first, second) --> 829 assertion_func(first, second, msg=msg) 830 831 def assertNotEqual(self, first, second, msg=None): /anaconda3/lib/python3.6/unittest/case.py in _baseAssertEqual(self, first, second, msg) 820 standardMsg = '%s != %s' % _common_shorten_repr(first, second) 821 msg = self._formatMessage(msg, standardMsg) --> 822 raise self.failureException(msg) 823 824 def assertEqual(self, first, second, msg=None): AssertionError: False != True