コード例 #1
0
 def testReceiveNull(self):
     '''The test function returns '-1' when receives a None value instead of a string.'''
     self.assertEqual(countCharacters(None), -1)
コード例 #2
0
 def testReceiveNull(self):
     '''The test function returns '-1' when receives a None value instead of a string.'''
     self.assertEqual(countCharacters(None), -1)
コード例 #3
0
 def testBasic(self):
     '''The test function should be working for the basic cases.'''
     a = ''
     b = 'abc'
     self.assertEqual(countCharacters(a), len(a))
     self.assertEqual(countCharacters(b), len(b))
コード例 #4
0
 def testBasic(self):
     '''The test function should be working for the basic cases.'''
     a = ''
     b = 'abc'
     self.assertEqual(countCharacters(a), len(a))
     self.assertEqual(countCharacters(b), len(b))