Skip to content

Commit d562f42

Browse files
committed
Work around JuliaLang#14601 change
1 parent 408f80e commit d562f42

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

test/abstractarray.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -469,13 +469,6 @@ function test_13315(::Type{TestAbstractArray})
469469
@test [U;[U;]] == [UInt(1), UInt(2), UInt(1), UInt(2)]
470470
end
471471

472-
# checksquare
473-
function test_checksquare()
474-
@test LinAlg.checksquare(zeros(2,2)) == 2
475-
@test LinAlg.checksquare(zeros(2,2),zeros(3,3)) == [2,3]
476-
@test_throws DimensionMismatch LinAlg.checksquare(zeros(2,3))
477-
end
478-
479472
#----- run tests -------------------------------------------------------------#
480473

481474
for T in (T24Linear, TSlow), shape in ((24,), (2, 12), (2,3,4), (1,2,3,4), (4,3,2,1))
@@ -496,7 +489,6 @@ test_map_promote(TestAbstractArray)
496489
test_UInt_indexing(TestAbstractArray)
497490
Base.BUILD_FULL && test_vcat_depwarn(TestAbstractArray)
498491
test_13315(TestAbstractArray)
499-
test_checksquare()
500492

501493
A = TSlowNIndexes(rand(2,2))
502494
@test_throws ErrorException A[1]

test/linalg/generic.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,12 @@ end
208208

209209
# Issue 14657
210210
@test det([true false; false true]) == det(eye(Int, 2))
211+
212+
# checksquare
213+
function test_checksquare()
214+
@test LinAlg.checksquare(zeros(2,2)) == 2
215+
@test LinAlg.checksquare(zeros(2,2),zeros(3,3)) == [2,3]
216+
@test_throws DimensionMismatch LinAlg.checksquare(zeros(2,3))
217+
end
218+
219+
test_checksquare()

0 commit comments

Comments
 (0)