Skip to content

Commit

Permalink
Trivial cleanup of SubArray linear test
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jan 3, 2016
1 parent acb3506 commit c104084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/subarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ end
function test_linear(A, B)
length(A) == length(B) || error("length mismatch")
isgood = true
for (iA, iB) in zip(1:length(A), 1:length(B))
if A[iA] != B[iB]
for i = 1:length(A)
if A[i] != B[i]
isgood = false
break
end
Expand Down

0 comments on commit c104084

Please sign in to comment.