Skip to content

Commit

Permalink
Fix J v1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jan 13, 2025
1 parent 2973c21 commit efadfd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ end
end

@testset "issue_316_SubArray" begin
y = [1.0;;;]
y = reshape([1.0], 1, 1, 1)
Y = view(y, :, :, 1)
ret = [1.0;;]
ret = reshape([1.0], 1, 1)
ret = MA.operate!!(MA.add_mul, ret, 2.0, Y)
@test ret == [3.0;;]
@test y == [1.0;;;]
@test ret == reshape([3.0], 1, 1)
@test y == reshape([1.0], 1, 1, 1)
end

0 comments on commit efadfd8

Please sign in to comment.