Skip to content

Commit ebaa378

Browse files
committed
test begin and end
1 parent a4bcbcb commit ebaa378

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ using PythonCall
2727
@test firstindex(w, 1) == 1
2828
@test lastindex(w, 1) == 10
2929
@test lastindex(w, 2) == 20
30-
30+
@test size(w[begin:2:end, begin:2:end]) == (5,10)
3131
end
3232

3333
@testset "Write & Read Operations" begin
@@ -52,6 +52,7 @@ using PythonCall
5252
@test firstindex(sub_w, 1) == 1
5353
@test lastindex(sub_w, 1) == 5
5454
@test lastindex(sub_w, 2) == 15
55+
@test size(sub_w[begin:2:end, begin:2:end]) == (3,3)
5556

5657
# translate_by
5758
tw = PyTensorStore.translate_by(w, 10, 20)

0 commit comments

Comments
 (0)