def testDuasGramaticasSaoIguaisSePossuemAsMesmasProducoesEMesmoVNEMesmoVTEMesmoSimboloInicial(self):
   self.assertEqual(construirGLCComABOndeNumAsEhIgualNumBsSemSimbolosInuteis(),
                    construirGLCComABOndeNumAsEhIgualNumBsSemSimbolosInuteis())
Ejemplo n.º 2
0
 def testDadaUmaGLCComSimbolosInuteisPodeRemovelosERetornarUmaGLCSemSimbolosInuteis(self):
   glc_ok = construirGLCComABOndeNumAsEhIgualNumBsSemSimbolosInuteis()
   glc_nok = construirGLCComABOndeNumAsEhIgualNumBsComSimbolosInuteis()
   self.assertNotEqual(glc_ok, glc_nok)
   self.assertEqual(glc_ok, util.remover_simbolos_inuteis_glc(glc_nok))