Exemplo n.º 1
0
 def test_de_caso_teste_deve_retornar_3(self):
     word_test = '(ab)(etca)(de)(hd)'
     words = 'aedh\nated\nbaeh\naaae'.split('\n')
     self.assertEqual(3, times_in_words(words, word_test, list_letter(word_test), 4))
Exemplo n.º 2
0
 def test_deve_retornar_acsd_fdseasdds_abc_d_adsaa_asd_poqwea_asdd_a(self):
     self.assertEqual(['acsd','fdseasdds','abc','d','adsaa','asd','poqwea','asdd','a'], list_letter('(acsd)(fdseasdds)(abc)d(adsaa)(asd)(poqwea)(asdd)a'))
Exemplo n.º 3
0
 def test_do_caso_de_test_2_de_small_deve_retornar_certo(self):
     word_test = 'nwlr(nqxb)bm(dgqw)bh'
     words = 'nwlrbbmqbh\ncdarzowkky\nhiddqscdxr\njmowfrxsjy\nbldbefsarc\nbynecdyggx\nxpklorelln\nmpapqfwkho\npkmcoqhnwn\nkuewhsqmgb\nbuqcljjivs\nwmdkqtbxix\nmvtrrbljpt\nnsnfwzqfjm\nafadrrwsof\nsbcnuvqhff\nbsaqxwpqca\ncehchzvfrk\nmlnozjkpqp\nxrjxkitzyx\nacbhhkicqc\noendtomfgd\nwdwfcgpxiq\nvkuytdlcgd\newhtacioho\nrdtqkvwcsg'.split('\n')
     self.assertEqual(1, times_in_words(words, word_test, list_letter(word_test), 10))
Exemplo n.º 4
0
 def test_deve_retornar_ac_b_dc(self):
     self.assertEqual(['ac','b','dc'], list_letter('(ac)b(dc)') )
Exemplo n.º 5
0
 def test_de_caso_teste_deve_retornar_3(self):
     word_test = '(ab)(etca)(de)(hd)'
     words = 'aedh\nated\nbaeh\naaae'.split('\n')
     self.assertEqual(
         3, times_in_words(words, word_test, list_letter(word_test), 4))
Exemplo n.º 6
0
 def test_do_caso_de_test_2_de_small_deve_retornar_certo(self):
     word_test = 'nwlr(nqxb)bm(dgqw)bh'
     words = 'nwlrbbmqbh\ncdarzowkky\nhiddqscdxr\njmowfrxsjy\nbldbefsarc\nbynecdyggx\nxpklorelln\nmpapqfwkho\npkmcoqhnwn\nkuewhsqmgb\nbuqcljjivs\nwmdkqtbxix\nmvtrrbljpt\nnsnfwzqfjm\nafadrrwsof\nsbcnuvqhff\nbsaqxwpqca\ncehchzvfrk\nmlnozjkpqp\nxrjxkitzyx\nacbhhkicqc\noendtomfgd\nwdwfcgpxiq\nvkuytdlcgd\newhtacioho\nrdtqkvwcsg'.split(
         '\n')
     self.assertEqual(
         1, times_in_words(words, word_test, list_letter(word_test), 10))
Exemplo n.º 7
0
 def test_deve_retornar_acsd_fdseasdds_abc_d_adsaa_asd_poqwea_asdd_a(self):
     self.assertEqual([
         'acsd', 'fdseasdds', 'abc', 'd', 'adsaa', 'asd', 'poqwea', 'asdd',
         'a'
     ], list_letter('(acsd)(fdseasdds)(abc)d(adsaa)(asd)(poqwea)(asdd)a'))
Exemplo n.º 8
0
 def test_deve_retornar_ac_b_dc(self):
     self.assertEqual(['ac', 'b', 'dc'], list_letter('(ac)b(dc)'))