1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-26 02:20:30 +01:00

fix travis

This commit is contained in:
kalmarek 2018-09-21 19:27:47 +02:00
parent fdab6278d5
commit df007e5fb6
2 changed files with 8 additions and 7 deletions

View File

@ -4,7 +4,8 @@ os:
- linux - linux
- osx - osx
julia: julia:
- 0.6 - 0.7
- 1.0
- nightly - nightly
notifications: notifications:
email: true email: true
@ -24,8 +25,8 @@ matrix:
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi # - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi
## uncomment the following lines to override the default test script ## uncomment the following lines to override the default test script
script: # script:
- julia -e 'Pkg.clone(pwd()); Pkg.build("Groups"); Pkg.test("Groups"; coverage=true)' # - julia -e 'Pkg.clone(pwd()); Pkg.build("Groups"); Pkg.test("Groups"; coverage=true)'
after_success: after_success:
# push coverage results to Coveralls # push coverage results to Coveralls

View File

@ -32,7 +32,7 @@
@test GG(g, g^2) isa GroupElem @test GG(g, g^2) isa GroupElem
@test GG(g, g^2) isa Groups.DirectProductGroupElem @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 GG(g,g^2) == h
@test h[1] == g @test h[1] == g
@ -109,9 +109,9 @@
@test FF([a,1]) isa GroupElem @test FF([a,1]) isa GroupElem
@test FF([a,1]) isa DirectProductGroupElem @test FF([a,1]) isa DirectProductGroupElem
@test FF([a,1]) isa DirectProductGroupElem{MltGrpElem{elem_type(F)}} @test FF([a,1]) isa DirectProductGroupElem{MltGrpElem{elem_type(F)}}
@test_throws MethodError FF(1,0) @test_throws DomainError FF(1,0)
@test_throws MethodError FF([0,1]) @test_throws DomainError FF([0,1])
@test_throws MethodError FF([1,0]) @test_throws DomainError FF([1,0])
@test MltGrp(F) isa AbstractAlgebra.Group @test MltGrp(F) isa AbstractAlgebra.Group
@test MltGrp(F) isa MultiplicativeGroup @test MltGrp(F) isa MultiplicativeGroup