From 0d3dad9c4dbf32a5a4af1744d742dd79839a012d Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 25 Jul 2017 14:47:06 +0200 Subject: [PATCH] replace for loop of @test's by @test all(...) --- test/runtests.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index a6d517d..36869e8 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -73,9 +73,7 @@ using Nemo @test isa(GroupRingElem(a, RG), GroupRingElem) @test isa(RG(a), GroupRingElem) - for g in elements(G) - @test isa(RG(g), GroupRingElem) - end + @test all(isa(RG(g), GroupRingElem) for g in elements(G)) @test_throws String GroupRingElem([1,2,3], RG) @test isa(RG(G([2,3,1])), GroupRingElem)