From 93d380094efa9cb48cf87a140ccfe34067c317a8 Mon Sep 17 00:00:00 2001 From: kalmar Date: Sun, 23 Jul 2017 17:03:28 +0200 Subject: [PATCH] define GG, FF globally for inner testsets --- test/DirectProd-tests.jl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/DirectProd-tests.jl b/test/DirectProd-tests.jl index ae7b9fc..115919b 100644 --- a/test/DirectProd-tests.jl +++ b/test/DirectProd-tests.jl @@ -37,10 +37,10 @@ @test h == GG(g, G()) end - @testset "Types" begin - GG = Groups.DirectProductGroup(G,2) - FF = Groups.DirectProductGroup(F,2) + GG = Groups.DirectProductGroup(G,2) + FF = Groups.DirectProductGroup(F,2) + @testset "Types" begin @test elem_type(GG) == Groups.DirectProductGroupElem{elem_type(G)} @test elem_type(FF) == Groups.DirectProductGroupElem{elem_type(F)} @test parent_type(typeof(GG(g,g^2))) == Groups.DirectProductGroup{typeof(G)} @@ -52,7 +52,7 @@ @test_throws MethodError FF(1,0) end - @testset "Basis arithmetic" begin + @testset "Group arithmetic" begin g = G([2,3,1]) h = GG([g,g^2]) @@ -73,7 +73,6 @@ @test order(GG) == 36 @test order(FF) == 64 - @test isa([elements(GG)...], Vector{Groups.DirectProductGroupElem{elem_type(G)}}) elts = [elements(GG)...]