Skip to content

Commit

Permalink
Work around JuliaLang#14601 change
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed Jan 20, 2016
1 parent afcab0e commit eede8df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -469,13 +469,6 @@ function test_13315(::Type{TestAbstractArray})
@test [U;[U;]] == [UInt(1), UInt(2), UInt(1), UInt(2)]
end

# checksquare
function test_checksquare()
@test LinAlg.checksquare(zeros(2,2)) == 2
@test LinAlg.checksquare(zeros(2,2),zeros(3,3)) == [2,3]
@test_throws DimensionMismatch LinAlg.checksquare(zeros(2,3))
end

#----- run tests -------------------------------------------------------------#

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

A = TSlowNIndexes(rand(2,2))
@test_throws ErrorException A[1]
Expand Down
9 changes: 9 additions & 0 deletions test/linalg/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,12 @@ end

# Issue 14657
@test det([true false; false true]) == det(eye(Int, 2))

# checksquare
function test_checksquare()
@test LinAlg.checksquare(zeros(2,2)) == 2
@test LinAlg.checksquare(zeros(2,2),zeros(3,3)) == [2,3]
@test_throws DimensionMismatch LinAlg.checksquare(zeros(2,3))
end

test_checksquare()

0 comments on commit eede8df

Please sign in to comment.