Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Nov 9, 2022
1 parent 8642331 commit f91af26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/new_rewrite.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ function test_rewrite_repeated_sums()
@test MA.@rewrite(sum(x[i] for i in 1:n) + sum(x[i] for i in 1:n)) == 4 * n
@test MA.@rewrite(sum(x[i] for i in 1:n) - sum(x[i] for i in 1:n)) == 0
@test MA.@rewrite(sum(x[i]^2 for i in 1:n) - sum(x[i] for i in 1:n)) ==
sum(x.^2) - sum(x)
sum(x .^ 2) - sum(x)
@test MA.@rewrite(sum(x[i]^2 for i in 1:n) + sum(x[i] for i in 1:n)) ==
sum(x.^2) + sum(x)
sum(x .^ 2) + sum(x)
@test MA.@rewrite(sum(x[i] for i in 1:n) - sum(x[i]^2 for i in 1:n)) ==
sum(x) - sum(x.^2)
sum(x) - sum(x .^ 2)
@test MA.@rewrite(sum(x[i] for i in 1:n) + sum(x[i]^2 for i in 1:n)) ==
sum(x) + sum(x.^2)
sum(x) + sum(x .^ 2)
return
end

Expand Down

0 comments on commit f91af26

Please sign in to comment.