Skip to content

AssertionError #9

Description

@jsmlau

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions