Skip to content

Commit

Permalink
Add more optimizer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Apr 13, 2024
1 parent 725b702 commit b2a0c2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions optimizer/optimizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ func TestOptimize(t *testing.T) {
{`sum([a, b])`, 3},
{`sum([a, b, c])`, 6},
{`sum([a, b, c, 4])`, 10},
{`sum(1..10, # * 1000)`, 55000},
{`sum(map(1..10, # * 1000), # / 1000)`, float64(55)},
{`all(1..3, {# > 0}) && all(1..3, {# < 4})`, true},
{`all(1..3, {# > 2}) && all(1..3, {# < 4})`, false},
{`all(1..3, {# > 0}) && all(1..3, {# < 2})`, false},
Expand Down

0 comments on commit b2a0c2a

Please # to comment.