コード例 #1
0
ファイル: TesteUtil.py プロジェクト: katcipis/playground
 def testDadaUmaGLCEpsilonLivreSeTransformarEmEpsilonLivreRetornaAMesmaGramatica(self):
   self.assertEqual(construirGLCComABOndeNumAsEhIgualNumBsEpsilonLivre(), util.transformar_em_epsilon_livre_glc(construirGLCComABOndeNumAsEhIgualNumBsEpsilonLivre()))
   self.assertEqual(construirGLCExpAritmeticaComRecEsquerdaDireta(), util.transformar_em_epsilon_livre_glc(construirGLCExpAritmeticaComRecEsquerdaDireta()))
コード例 #2
0
ファイル: TesteUtil.py プロジェクト: katcipis/playground
 def testDadaUmaGLCNaoEpsilonLivrePodeRetornarUmaGLCEpsilonLivre(self):
   glc_ok = construirGLCComABOndeNumAsEhIgualNumBsEpsilonLivre()
   glc_nok = construirGLCComABOndeNumAsEhIgualNumBsComEpsilon()
   self.assertNotEqual(glc_ok, glc_nok)
   self.assertEqual(glc_ok, util.transformar_em_epsilon_livre_glc(glc_nok))