Skip to content

Commit

Permalink
fix reference tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonschaub committed Oct 8, 2023
1 parent a1034b4 commit 8217a73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/build_function_tests/stencil-broadcast-inplace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
ˍ₋out_1 = (view)(ˍ₋out, 1:6, 1:6)
ˍ₋out_1 .= 0
ˍ₋out_2 = (view)(ˍ₋out, 2:5, 2:5)
for (j, j′) = zip(1:4, reset_to_one(1:4))
for (i, i′) = zip(1:4, reset_to_one(1:4))
for (j, j′) = zip(Base.OneTo(4), reset_to_one(Base.OneTo(4)))
for (i, i′) = zip(Base.OneTo(4), reset_to_one(Base.OneTo(4)))
ˍ₋out_2[i′, j′] = (+)(ˍ₋out_2[i′, j′], (+)(1, (getindex)(ˍ₋out_2_input_1, i, j)))
end
end
Expand Down
4 changes: 2 additions & 2 deletions test/build_function_tests/stencil-broadcast-outplace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
ˍ₋out_1 = (view)(ˍ₋out, 1:6, 1:6)
ˍ₋out_1 .= 0
ˍ₋out_2 = (view)(ˍ₋out, 2:5, 2:5)
for (j, j′) = zip(1:4, reset_to_one(1:4))
for (i, i′) = zip(1:4, reset_to_one(1:4))
for (j, j′) = zip(Base.OneTo(4), reset_to_one(Base.OneTo(4)))
for (i, i′) = zip(Base.OneTo(4), reset_to_one(Base.OneTo(4)))
ˍ₋out_2[i′, j′] = (+)(ˍ₋out_2[i′, j′], (+)(1, (getindex)(ˍ₋out_2_input_1, i, j)))
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/build_function_tests/transpose-inplace.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:(function (x,)
let ˍ₋out = zeros(Float64, map(length, (1:4, 1:4)))
let ˍ₋out = zeros(Float64, map(length, (Base.OneTo(4), Base.OneTo(4))))
begin
for (j, j′) = zip(1:4, reset_to_one(1:4))
for (i, i′) = zip(1:4, reset_to_one(1:4))
Expand Down

0 comments on commit 8217a73

Please sign in to comment.