2023-05-04 10:13:05 +08:00
|
|
|
import PLSQL from '../../../src/parser/plsql';
|
2020-09-11 17:39:10 +08:00
|
|
|
|
|
|
|
describe('PLSQL Lexer tests', () => {
|
2021-01-05 17:49:34 +08:00
|
|
|
const parser = new PLSQL();
|
2020-09-11 17:39:10 +08:00
|
|
|
|
|
|
|
const sql = 'select id,name,sex from user1;';
|
|
|
|
const tokens = parser.getAllTokens(sql);
|
|
|
|
|
|
|
|
test('token counts', () => {
|
2023-05-04 10:13:05 +08:00
|
|
|
expect(tokens.length - 1).toBe(12);
|
2020-09-11 17:39:10 +08:00
|
|
|
});
|
|
|
|
});
|