Beispiel #1
0
 def test_hello_world_deve_retornar_world_hello(self):
     self.assertEqual("world hello", reverse_words("hello world"))
Beispiel #2
0
 def test_this_is_a_test_deve_retornar_test_a_is_this(self):
     self.assertTrue("test a is this", reverse_words("this is a test"))
Beispiel #3
0
 def test_python_deve_retornar_python(self):
     self.assertTrue("python", reverse_words("python"))
Beispiel #4
0
 def test_hello_world_deve_retornar_world_hello(self):
     self.assertEqual('world hello', reverse_words('hello world'))
Beispiel #5
0
 def test_i_like_python_deve_retornar_python_like_i(self):
     self.assertEqual("python like i", reverse_words("i like python"))
Beispiel #6
0
 def test_python_deve_retornar_python(self):
     self.assertTrue('python', reverse_words('python'))
Beispiel #7
0
 def test_this_is_a_test_deve_retornar_test_a_is_this(self):
     self.assertTrue('test a is this', reverse_words('this is a test'))
Beispiel #8
0
 def test_i_like_python_deve_retornar_python_like_i(self):
     self.assertEqual('python like i', reverse_words('i like python'))
Beispiel #9
0
from codigo import reverse_words

on = int(raw_input())
result = ''

for testcase in range(n):
    text = raw_input()
    result += 'Case #%d: %s\n' % (testcase + 1, reverse_words(text))

print result
Beispiel #10
0
from codigo import reverse_words

on = int(raw_input())
result = ''

for testcase in range(n):
    text = raw_input()
    result += 'Case #%d: %s\n' % (testcase+1,reverse_words(text))

print result