From c59b350600bf36f433902e6edb9d5b29587bca92 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Thu, 26 Jul 2018 23:29:26 +0200 Subject: [PATCH] new string repr for permutations --- test/runtests.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index c1c218d..2878b58 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -96,8 +96,8 @@ using Nemo @test a[5] == 1 @test a[p] == 1 - @test string(a) == "1*[2, 3, 1]" - @test string(-a) == "- 1*[2, 3, 1]" + @test string(a) == "1*(1,2,3)" + @test string(-a) == "- 1*(1,2,3)" @test RG([0,0,0,0,1,0]) == a @@ -109,8 +109,8 @@ using Nemo @test a[1] == 2 @test a[s] == 2 - @test string(a) == "2*[1, 2, 3] + 1*[2, 3, 1]" - @test string(-a) == "- 2*[1, 2, 3] - 1*[2, 3, 1]" + @test string(a) == "2*() + 1*(1,2,3)" + @test string(-a) == "- 2*() - 1*(1,2,3)" @test length(a) == 2 end