From d2fd78a2b635ef4a7debd2c0e33549754fd19283 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Sun, 16 Sep 2018 19:09:56 +0200 Subject: [PATCH] fix: DirectProductGroup constructor throws MethodError --- test/DirectProd-tests.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/DirectProd-tests.jl b/test/DirectProd-tests.jl index 439ba65..72985cd 100644 --- a/test/DirectProd-tests.jl +++ b/test/DirectProd-tests.jl @@ -30,7 +30,7 @@ @test GG(g, g^2) isa GroupElem @test GG(g, g^2) isa Groups.DirectProductGroupElem - @test_throws DomainError GG(g,g,g) + @test_throws MethodError GG(g,g,g) @test GG(g,g^2) == h @test size(h) == (2,) @@ -108,9 +108,9 @@ @test FF([a,1]) isa GroupElem @test FF([a,1]) isa DirectProductGroupElem @test FF([a,1]) isa DirectProductGroupElem{MltGrpElem{elem_type(F)}} - @test_throws DomainError FF(1,0) - @test_throws DomainError FF([0,1]) - @test_throws DomainError FF([1,0]) + @test_throws MethodError FF(1,0) + @test_throws MethodError FF([0,1]) + @test_throws MethodError FF([1,0]) @test MltGrp(F) isa AbstractAlgebra.Group @test MltGrp(F) isa MultiplicativeGroup