From 23d272f93384cec002589cc4e1d5c2645d936830 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Mon, 25 Sep 2023 12:14:13 +0200 Subject: [PATCH] Fix test errors on Julia nightly --- 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])