2024-03-27 10:33:25 +08:00
|
|
|
import { PLSQL } from 'src/parser/plsql';
|
2020-09-11 17:39:10 +08:00
|
|
|
|
|
|
|
describe('PLSQL Lexer tests', () => {
|
2024-03-27 10:33:25 +08:00
|
|
|
const plsql = new PLSQL();
|
2020-09-11 17:39:10 +08:00
|
|
|
|
|
|
|
const sql = 'select id,name,sex from user1;';
|
2024-03-27 10:33:25 +08:00
|
|
|
const tokens = plsql.getAllTokens(sql);
|
2020-09-11 17:39:10 +08:00
|
|
|
|
|
|
|
test('token counts', () => {
|
2023-05-30 14:44:03 +08:00
|
|
|
expect(tokens.length).toBe(12);
|
2020-09-11 17:39:10 +08:00
|
|
|
});
|
|
|
|
});
|