| 123456789101112131415161718192021222324252627 | 
							- import {
 
-     IVProgParser
 
- } from './../js/ast/ivprogParser';
 
- import { LanguageService } from '../js/services/languageService';
 
- describe('IfThenElse command', () => {
 
-     let input = `funcao inteiro test(real i) {
 
-       inteiro a = 5 + i
 
-       a = 5 + G[i][6]
 
-       se (a > 5) {
 
-         a = 5
 
-       } senao {
 
-         a = 0
 
-       }
 
-     }`;
 
-     const lexer = LanguageService.getCurrentLexer();
 
-     it(`should not result in SyntaxError`, () => {
 
-         const as = new IVProgParser(input, lexer);
 
-         as.pushVariableStack();
 
-         const fun = as.parseFunction.bind(as);
 
-         expect(fun).not.toThrow();
 
-         as.popVariableStack();
 
-     });
 
- });
 
 
  |