mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-12-29 11:00:28 +01:00
new string repr for permutations
This commit is contained in:
parent
725493afc0
commit
c59b350600
@ -96,8 +96,8 @@ using Nemo
|
|||||||
@test a[5] == 1
|
@test a[5] == 1
|
||||||
@test a[p] == 1
|
@test a[p] == 1
|
||||||
|
|
||||||
@test string(a) == "1*[2, 3, 1]"
|
@test string(a) == "1*(1,2,3)"
|
||||||
@test string(-a) == "- 1*[2, 3, 1]"
|
@test string(-a) == "- 1*(1,2,3)"
|
||||||
|
|
||||||
@test RG([0,0,0,0,1,0]) == a
|
@test RG([0,0,0,0,1,0]) == a
|
||||||
|
|
||||||
@ -109,8 +109,8 @@ using Nemo
|
|||||||
@test a[1] == 2
|
@test a[1] == 2
|
||||||
@test a[s] == 2
|
@test a[s] == 2
|
||||||
|
|
||||||
@test string(a) == "2*[1, 2, 3] + 1*[2, 3, 1]"
|
@test string(a) == "2*() + 1*(1,2,3)"
|
||||||
@test string(-a) == "- 2*[1, 2, 3] - 1*[2, 3, 1]"
|
@test string(-a) == "- 2*() - 1*(1,2,3)"
|
||||||
|
|
||||||
@test length(a) == 2
|
@test length(a) == 2
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user