Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8db31b0

Browse files
committedSep 14, 2020
Add tests
1 parent fd542d8 commit 8db31b0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎test/runtests.jl

+6-3
Original file line numberDiff line numberDiff line change
@@ -966,9 +966,12 @@ end
966966
@test axes(ones(2, 2:3) * ones(2:3)) == (1:2,)
967967

968968
# One-based arrays
969-
oa2 = OffsetArray(a, (0, 0))
970-
@test parent(oa2 * a) == a * a
971-
@test parent(a * oa2) == a * a
969+
oa2 = OffsetArray(a, axes(a))
970+
@test oa2 * a == a * a
971+
@test a * oa2 == a * a
972+
973+
@test oa2 * v == a * v
974+
@test v' * oa2 == v' * a
972975

973976
@test_throws Exception zeros(2, 2:3) * zeros(2:4, 2)
974977
@test_throws Exception zeros(2, 2:3) * zeros(3:4, 2)

0 commit comments

Comments
 (0)
Please sign in to comment.