Skip to content

Commit

Permalink
Update orientation pres. + rev. tests for monoid output
Browse files Browse the repository at this point in the history
  • Loading branch information
Murray Whyte committed Jan 24, 2023
1 parent ef498fb commit 464e483
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions tests/test_fpsemi_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,15 @@ def test_singular_brauer_monoid_exceptions():


def test_orientation_preserving_monoid():
s = orientation_preserving_monoid(6)
p = make(orientation_preserving_monoid(6))
p.alphabet(3)
presentation.replace_word(p, [], [2])
presentation.add_identity_rules(p, 2)
p.validate()
tc = ToddCoxeter(congruence_kind.twosided)
tc.set_number_of_generators(3)
for rule in s:
tc.add_pair(rule[0], rule[1])
for i in range(0, len(p.rules), 2):
tc.add_pair(p.rules[i], p.rules[i + 1])
assert tc.number_of_classes() == 2742


Expand All @@ -511,11 +515,15 @@ def test_orientation_preserving_monoid_exceptions():


def test_orientation_reversing_monoid():
s = orientation_reversing_monoid(5)
p = make(orientation_reversing_monoid(5))
p.alphabet(4)
presentation.replace_word(p, [], [3])
presentation.add_identity_rules(p, 3)
p.validate()
tc = ToddCoxeter(congruence_kind.twosided)
tc.set_number_of_generators(4)
for rule in s:
tc.add_pair(rule[0], rule[1])
for i in range(0, len(p.rules), 2):
tc.add_pair(p.rules[i], p.rules[i + 1])
assert tc.number_of_classes() == 1015


Expand Down

0 comments on commit 464e483

Please sign in to comment.