Esempio n. 1
0
    def test_longest_word( self ):

        words = [ 'Sheena', 'leads', 'Shelia', 'needs' ]
        longest = exercises.longest_word( words )

        self.assertEqual( longest, 6 )
Esempio n. 2
0
 def test_longest_word(self):
     self.assertEqual(exercises.longest_word(['googleplex', 'bike', 'pneumonoultramicroscopicsilicovolcanoconiosis', 'TeamLeada']), 'pneumonoultramicroscopicsilicovolcanoconiosis')
Esempio n. 3
0
    def test_longest_word( self ):

        words = [ 'Sheena', 'leads', 'Shelia', 'needs' ]
        longest = exercises.longest_word( words )

        self.assertEqual( longest, 6 )