1
0
mirror of https://github.com/koloml/philomena-tagging-assistant.git synced 2026-06-23 18:22:20 +00:00

Added boost to the list of queries to test

This commit is contained in:
2026-06-14 02:03:08 +04:00
parent 7c462e1b5c
commit f8758306b7

View File

@@ -20,6 +20,7 @@ describe('QueryLexer', () => {
it('should properly parse different kinds of queries', () => {
expect(parseQueryTypes('safe')).toEqual([TermToken]);
expect(parseQueryTypes('safe^1')).toEqual([TermToken, BoostToken]);
expect(parseQueryTypes('safe, avali')).toEqual([TermToken, AndToken, TermToken]);
expect(parseQueryTypes('!avali')).toEqual([NotToken, TermToken]);
expect(parseQueryTypes('avali || 4 ears')).toEqual([TermToken, OrToken, TermToken]);