Пример #1
0
 def test_a_deve_retornar_2(self):
     self.assertEqual('2', spelling('a'))
Пример #2
0
 def test_b_deve_retornar_22(self):
     self.assertEqual('22', spelling('b'))
Пример #3
0
 def test_yes_deve_retornar_999_33_7777(self):
     self.assertEqual('999337777', spelling('yes'))
Пример #4
0
 def test_hello_world_deve_retornar_4433555_555666096667775553(self):
     self.assertEqual('4433555 555666096667775553', spelling('hello world'))
Пример #5
0
 def test_bca_deve_retornar_22_222_2(self):
     self.assertEqual('22 222 2', spelling('bca'))
Пример #6
0
 def test_hi_deve_retornar_44_444(self):
     self.assertEqual('44 444', spelling('hi'))
Пример #7
0
from printresult.fileresult import writeresult

from codigo import spelling

n = int(raw_input())
result = ''

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

writeresult('result-C-larger.in')
Пример #8
0
 def test_ac_deve_retornar_2_222(self):
     self.assertEqual('2 222', spelling('ac'))
Пример #9
0
 def test_a_deve_retornar_2(self):
     self.assertEqual('2', spelling('a'))
Пример #10
0
 def test_b_deve_retornar_22(self):
     self.assertEqual('22', spelling('b'))
Пример #11
0
 def test_hello_world_deve_retornar_4433555_555666096667775553(self):
     self.assertEqual('4433555 555666096667775553', spelling('hello world'))
Пример #12
0
 def test_yes_deve_retornar_999_33_7777(self):
     self.assertEqual('999337777', spelling('yes'))
Пример #13
0
 def test_hi_deve_retornar_44_444(self):
     self.assertEqual('44 444', spelling('hi'))
Пример #14
0
 def test_bca_deve_retornar_22_222_2(self):
     self.assertEqual('22 222 2', spelling('bca'))
Пример #15
0
 def test_ac_deve_retornar_2_222(self):
     self.assertEqual('2 222', spelling('ac'))