From 77e63df55233d9fc3119bd10144d5b8cc1b9f0ad Mon Sep 17 00:00:00 2001 From: David Widmann Date: Mon, 2 Oct 2023 20:40:40 +0200 Subject: [PATCH] Fix test errors on Julia nightly (#895) --- test/rankcorr.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rankcorr.jl b/test/rankcorr.jl index d1f58ef14..dc0207ee1 100644 --- a/test/rankcorr.jl +++ b/test/rankcorr.jl @@ -152,10 +152,10 @@ end @test_throws DimensionMismatch corspearman([1], [1, 2]) @test_throws DimensionMismatch corspearman([1], [1 2; 3 4]) @test_throws DimensionMismatch corspearman([1 2; 3 4], [1]) -@test_throws ArgumentError corspearman([1 2; 3 4: 4 6], [1 2; 3 4]) +@test_throws ArgumentError corspearman([1 2; 3 4; 4 6], [1 2; 3 4]) # TODO: fix corkendall to match corspearman (PR#659) @test_throws ErrorException corkendall([1], [1, 2]) @test_throws ErrorException corkendall([1], [1 2; 3 4]) @test_throws ErrorException corkendall([1 2; 3 4], [1]) -@test_throws ArgumentError corkendall([1 2; 3 4: 4 6], [1 2; 3 4]) +@test_throws ErrorException corkendall([1 2; 3 4; 4 6], [1 2; 3 4])