Skip to content

Commit 450a781

Browse files
author
Christopher Doris
committed
slicing tests for juliaarray
1 parent 74402b0 commit 450a781

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,9 @@ end
926926
@test @pyv `$xv[-3] == 1`::Bool
927927
@test @pyv `$xm[0,0] == 1`::Bool
928928
@test @pyv `$xm[1,-1] == 4`::Bool
929+
@test @pyv `$xv[::] == $xv`::Bool
930+
@test @pyv `$xv[:2] == $([1,2])`::Bool
931+
@test @pyv `$xv[::-2] == $([3,1])`::Bool
929932
@py `$xm[0,0] = 0`
930933
@test jm[1,1] == 0
931934
@py `del $xv[1]`::Bool

0 commit comments

Comments
 (0)