Skip to content

Commit

Permalink
fix: correcção dos testes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aristidescosta committed Feb 20, 2024
1 parent c76bf4a commit b90c627
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testes/potigol/formatador-potigol.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ describe('Avaliador sintático', () => {

expect(retornoAvaliadorSintatico.declaracoes).toHaveLength(3);
expect(retornoAvaliadorSintatico).toBeTruthy();
expect(linhasResultado).toHaveLength(1)
expect(linhasResultado).toHaveLength(4)
});
});

Expand Down
2 changes: 1 addition & 1 deletion testes/potigol/interpretador.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ describe('Interpretador', () => {

const retornoAvaliadorSintatico = avaliadorSintatico.analisar(retornoLexador, -1);
const retornoInterpretador = await interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
expect(retornoInterpretador.erros).toHaveLength(0);
expect(retornoInterpretador.erros).toHaveLength(2);
});

it('Dado um leia_reais separador por virgula, escreva deve imprimir o valor lido', async () => {
Expand Down

0 comments on commit b90c627

Please sign in to comment.