Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64a4aa2

Browse files
committed
Fix deprecation warnings
1 parentb678985 commit64a4aa2

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

‎test/basic_indexing.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ testvb = deepcopy(testva)
6161
@test_deprecated testva[1:2]
6262
@test_deprecated testva[begin]
6363
@test_deprecated testva[end]
64-
@test testva[begin]== testva[:,begin]==first(testva)
65-
@test testva[end]== testva[:,end]==last(testva)
64+
@test testva[:,begin]==first(testva)
65+
@test testva[:,end]==last(testva)
6666
@test testa[:,1]== recs[1]
6767
@test testva.u== recs
6868
@test testva[: ,2:end]==VectorOfArray([recs[i]for iin2:length(recs)])

‎test/interface_tests.jl‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,10 @@ bool_idx = rand(Bool, 10)
9898
for (voaidx, arridx)in [
9999
((:,), (:,)),
100100
((3:5,), (3:5,)),
101-
((:,3:5), (3:5,)),
102-
((1,3:5), (3:5,)),
103-
((:, bool_idx), (bool_idx,))
101+
((bool_idx,), (bool_idx,))
104102
]
105103
arr_view=view(arrvc, arridx...)
106-
voa_view=view(testvc, voaidx...)
104+
voa_view=view(testvc.u, voaidx...)
107105
@testsize(arr_view)==size(voa_view)
108106
@testall(arr_view.== voa_view)
109107
end
@@ -229,7 +227,7 @@ function f(u1,u2,u3)
229227
u3 .= u1.+ u2
230228
end
231229
f(u1,u2,u3)
232-
@test (@allocatedf(u1,u2,u3))==0
230+
@test (@allocatedf(u1,u2,u3))==0
233231

234232
yy= [2.01.0;2.01.0]
235233
zz= x.+ yy

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp