コード例 #1
0
    def test_is_palindrome_advanced( self ):

        # string = 'Was it a rat I saw?'
        strings = [ 'Was it a rat I saw?', 'Step on no pets', 'Sit on a potato pan, Otis' ]

        for string in strings:
            is_palindrome = exercises.is_palindrome_advanced( string )
            self.assertTrue( is_palindrome )
コード例 #2
0
    def test_is_palindrome_advanced( self ):

        # string = 'Was it a rat I saw?'
        strings = [ 'Was it a rat I saw?', 'Step on no pets', 'Sit on a potato pan, Otis' ]

        for string in strings:
            is_palindrome = exercises.is_palindrome_advanced( string )
            self.assertTrue( is_palindrome )