Skip to content

Commit

Permalink
Merge branch 'master' into sankey-diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
ishubin committed Jan 31, 2025
2 parents 4b356a5 + dabaf0b commit 393ade8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ui/templater/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const operatorPrecedences = [
'*',
'/',
'%',
'+',
'-',
'+',
'<<',
'>>',
'&',
Expand Down
5 changes: 3 additions & 2 deletions test/templater/ast.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import { List } from '../../src/ui/templater/list';
describe('templater ast parser', () => {
it('should parse various expressions', () => {
[
['2-5 + qwe', '(2 - (5 + qwe))'],
['2 * 8 + 1 - 4 *4 ', '(((2 * 8) + 1) - (4 * 4))'],
['2 - 5 - k + x * w', '(((2 - 5) - k) + (x * w))'],
['2-5 + qwe', '((2 - 5) + qwe)'],
['2 * 8 + 1 - 4 *4 ', '((2 * 8) + (1 - (4 * 4)))'],
['1 + (x - 4) * 3', '(1 + ((x - 4) * 3))'],
['x < 5', '(x < 5)'],
['x + 1 < 5 - y', '((x + 1) < (5 - y))'],
Expand Down

0 comments on commit 393ade8

Please sign in to comment.