diff --git a/tests/test_permutations.py b/tests/test_permutations.py index 8a13fccd..bc2eb76f 100644 --- a/tests/test_permutations.py +++ b/tests/test_permutations.py @@ -9,10 +9,12 @@ def test_permute(): for i in range(100000): assert perm.random_number_generator() >= 0 assert perm.random_number_generator() <= 1 - + state = perm.state + assert state == 822144001 # Test the permutation test_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] length = len(test_list) for i in range(100000): perm.permute(test_list) assert len(test_list) == length + assert test_list == [5, 6, 4, 10, 7, 2, 1, 3, 8, 9]