1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-11-19 14:35:28 +01:00

fix basic tests for construction of automorphisms

This commit is contained in:
kalmar 2017-01-27 13:04:52 +01:00
parent 3ca4563439
commit 9755b9365c

View File

@ -113,7 +113,7 @@ end
@testset "AutSymbol" begin @testset "AutSymbol" begin
@test_throws MethodError AutSymbol("a") @test_throws MethodError AutSymbol("a")
@test_throws MethodError AutSymbol("a", 1) @test_throws MethodError AutSymbol("a", 1)
f = AutSymbol("a", 1, :(a(0))) f = AutSymbol("a", 1, :(a(0)), v -> v, v -> v)
@test isa(f, GSymbol) @test isa(f, GSymbol)
@test isa(f, AutSymbol) @test isa(f, AutSymbol)
@test isa(symmetric_AutSymbol([1,2,3,4]), AutSymbol) @test isa(symmetric_AutSymbol([1,2,3,4]), AutSymbol)
@ -123,7 +123,7 @@ end
end end
@testset "AutWords" begin @testset "AutWords" begin
f = AutSymbol("a", 1, :(a(0))) f = AutSymbol("a", 1, :(a(0)), v -> v, v -> v)
@test isa(GWord(f), GWord) @test isa(GWord(f), GWord)
@test isa(GWord(f), AutWord) @test isa(GWord(f), AutWord)
@test isa(AutWord(f), AutWord) @test isa(AutWord(f), AutWord)