コード例 #1
0
 def clicouRemoverCiclos(self):
   try:
     glc = self.__obterGLC()
     glc = util.remover_ciclos_glc(glc)
     self.__setarGLC(glc)
     
   except Exception as excecao:
     self._error.showMessage(str(excecao))
コード例 #2
0
ファイル: TesteUtil.py プロジェクト: katcipis/playground
 def testDadaUmaGLCSemCiclosSeTentarRemoverCiclosNaoAlteraAGramatica(self):
   self.assertEqual(construirGLCSemCiclo(), util.remover_ciclos_glc(construirGLCSemCiclo()))
コード例 #3
0
ファイル: TesteUtil.py プロジェクト: katcipis/playground
 def testDadaUmaGLCComCiclosPodeRetornarUmaGLCSemOsCiclos(self):
   glc_nok = construirGLCComCiclo()
   self.assertTrue(glc_nok.possuiCiclo())
   glc_nok = util.remover_ciclos_glc(glc_nok)
   self.assertFalse(glc_nok.possuiCiclo())