From eede8df7e768b1d6f891f5ee167ae534b183716a Mon Sep 17 00:00:00 2001 From: ScottPJones Date: Sun, 17 Jan 2016 17:39:23 -0500 Subject: [PATCH] Work around #14601 change --- test/abstractarray.jl | 8 -------- test/linalg/generic.jl | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/test/abstractarray.jl b/test/abstractarray.jl index 66643970888c9a..502d79a800014e 100644 --- a/test/abstractarray.jl +++ b/test/abstractarray.jl @@ -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)) @@ -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] diff --git a/test/linalg/generic.jl b/test/linalg/generic.jl index 59557e35e27876..0d9091e5dd150d 100644 --- a/test/linalg/generic.jl +++ b/test/linalg/generic.jl @@ -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()