12345678910111213141516171819202122 |
- import { IVProgParser } from './../js/ast/ivprogParser';
- import { LanguageService } from './../js/services/languageService';
- describe('Illegal newline syntax', () => {
- const input = `programa
- {
- const
- inteiro a = 1, b
- real
- PI = 5.6, c;
- }
- `;
- const lexer = LanguageService.getCurrentLexer();
- it(`should result in SyntaxError`, () => {
- const as = new IVProgParser(input, lexer);
- const fun = as.parseTree.bind(as);
- expect(fun).toThrow();
- });
- });
|