Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dalum committed May 30, 2020
1 parent 8109aa2 commit 30e9bd9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions stdlib/LinearAlgebra/test/uniformscaling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,19 @@ end

J = I(15)
for (a, b) in [
# indexing that returns a Vector
(1:10, 1),
(4, 1:10),
(11, 1:10),
# indexing that returns a Matrix
(1:2, 1:2),
(1:2:3, 1:2:3),
(1:2:8, 2:2:9),
(2:2:9, 1:2:8),
(1:2:8, 9:-4:1),
(9:-4:1, 1:2:8),
(1:2, 2:3),
(2:3, 1:2),
(2:-1:1, 1:2),
(1:2, 2:-1:1),
(1:2:9, 5:2:13),
(5:2:13, 1:2:9),
]
@test I[a,b] == J[a,b]
end
Expand Down

0 comments on commit 30e9bd9

Please sign in to comment.