mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
WIP pass the failed tests.
This commit is contained in:
12
common/lib/Lexer.test.js
Normal file
12
common/lib/Lexer.test.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { expect } from '~/testInit';
|
||||
import { Lexer } from '@/lib/LogicEvaluation/Lexer';
|
||||
|
||||
describe('Lexer', () => {
|
||||
|
||||
it('Should retrieve tokens of the expression.', () => {
|
||||
const lexer = new Lexer('(1 && 2) || (2 || 3)');
|
||||
|
||||
const tokens = lexer.getTokens();
|
||||
expect(tokens.length).equals(11);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user