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 authored and james-d-mitchell committed Jan 17, 2020
1 parent e3c7f43 commit a20d381
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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])
3 changes: 2 additions & 1 deletion tests/test_pperm.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ def test_init(self):
PartialPerm([1, 0], [0, 1], 5)
PartialPerm([0, 3, 4, 5, 8, 20, 23373], [1, 2, 34, 23423, 233, 432, 26], 26260)
# Check for CPPYY issue workaround
self.assertEqual(PartialPerm([]), PartialPerm([0, 1]))
PartialPerm([])
PartialPerm([0, 1])

def test_init_fail(self):
with self.assertRaises(TypeError):
Expand Down
3 changes: 2 additions & 1 deletion tests/test_transf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ def test_init(self):
Transformation([1, 1, 3, 2, 4, 3])
Transformation([9, 3, 1, 2, 0, 8, 1, 2, 0, 5])
# Check for CPPYY issue workaround
self.assertEqual(Transformation([]), Transformation([0, 1]))
Transformation([])
Transformation([0, 1])

def test_init_fail(self):
with self.assertRaises(TypeError):
Expand Down

0 comments on commit a20d381

Please sign in to comment.