Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests for julia-0.5 reshape change #44

Merged
merged 1 commit into from
Apr 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/subviews.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ end

#### test views from arrays

avparent = reshape(1.:1680., (8, 7, 6, 5))
avparent = copy(reshape(1.:1680., (8, 7, 6, 5)))

# 1D
@test_arrview(avparent, 3)
Expand Down Expand Up @@ -220,7 +220,7 @@ avparent = reshape(1.:1680., (8, 7, 6, 5))


# Some 5D tests
avparent2 = reshape(1.:6720., (8, 7, 6, 5, 4))
avparent2 = copy(reshape(1.:6720., (8, 7, 6, 5, 4)))

@test_arrview(avparent2, :, 1, 1, 1, 1)
@test_arrview(avparent2, :, 1, 1, 3, 1)
Expand Down Expand Up @@ -257,7 +257,7 @@ function test_arrview2(a, subs1, subs2)
_test_arrview_contents(unsafe_view(uv, subs2...), v2r)
end

avparent = reshape(1:6912, (12, 12, 8, 6))
avparent = copy(reshape(1:6912, (12, 12, 8, 6)))

# 1D --> 1D
for sa in Any[Colon(), 1:36, 2:2:36]
Expand Down