示例#1
0
文件: test.py 项目: siminino/codejam
 def test_hello_world_deve_retornar_world_hello(self):
     self.assertEqual("world hello", reverse_words("hello world"))
示例#2
0
文件: test.py 项目: siminino/codejam
 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"))
示例#3
0
文件: test.py 项目: siminino/codejam
 def test_python_deve_retornar_python(self):
     self.assertTrue("python", reverse_words("python"))
示例#4
0
 def test_hello_world_deve_retornar_world_hello(self):
     self.assertEqual('world hello', reverse_words('hello world'))
示例#5
0
文件: test.py 项目: siminino/codejam
 def test_i_like_python_deve_retornar_python_like_i(self):
     self.assertEqual("python like i", reverse_words("i like python"))
示例#6
0
 def test_python_deve_retornar_python(self):
     self.assertTrue('python', reverse_words('python'))
示例#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'))
示例#8
0
 def test_i_like_python_deve_retornar_python_like_i(self):
     self.assertEqual('python like i', reverse_words('i like python'))
示例#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
示例#10
0
文件: main.py 项目: siminino/codejam
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