From df007e5fb6ca8142d32ecd198ca0a0590268ddbe Mon Sep 17 00:00:00 2001 From: kalmarek Date: Fri, 21 Sep 2018 19:27:47 +0200 Subject: [PATCH] fix travis --- .travis.yml | 7 ++++--- test/DirectProd-tests.jl | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 132f1bc..a2a3fad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,8 @@ os: - linux - osx julia: - - 0.6 + - 0.7 + - 1.0 - nightly notifications: email: true @@ -24,8 +25,8 @@ matrix: # - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi ## uncomment the following lines to override the default test script -script: - - julia -e 'Pkg.clone(pwd()); Pkg.build("Groups"); Pkg.test("Groups"; coverage=true)' +# script: + # - julia -e 'Pkg.clone(pwd()); Pkg.build("Groups"); Pkg.test("Groups"; coverage=true)' after_success: # push coverage results to Coveralls diff --git a/test/DirectProd-tests.jl b/test/DirectProd-tests.jl index c60c269..5e9437e 100644 --- a/test/DirectProd-tests.jl +++ b/test/DirectProd-tests.jl @@ -32,7 +32,7 @@ @test GG(g, g^2) isa GroupElem @test GG(g, g^2) isa Groups.DirectProductGroupElem - @test_throws MethodError GG(g,g,g) + @test_throws DomainError GG(g,g,g) @test GG(g,g^2) == h @test h[1] == g @@ -109,9 +109,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 MethodError FF(1,0) - @test_throws MethodError FF([0,1]) - @test_throws MethodError FF([1,0]) + @test_throws DomainError FF(1,0) + @test_throws DomainError FF([0,1]) + @test_throws DomainError FF([1,0]) @test MltGrp(F) isa AbstractAlgebra.Group @test MltGrp(F) isa MultiplicativeGroup