Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Fixed a test incompat No/HPCombi
Browse files Browse the repository at this point in the history
  • Loading branch information
hivert committed Jan 17, 2020
1 parent 5d56a71 commit cc068e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_perm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

class TestPerm(unittest.TestCase):
def test_init(self):
Permutation([])
Permutation([0, 1])
Permutation([0, 1, 2, 3])
self.assertEqual(Permutation([]), Permutation([0, 1]))
def test_one(self):
self.assertEqual(Permutation([1, 0, 2]) ** 2, Permutation([0, 1, 2]))
self.assertEqual(Permutation([1, 0, 2]).ran(), [1, 0, 2])

0 comments on commit cc068e7

Please sign in to comment.