Skip to content

Commit 3373ec9

Browse files
committed
More combinatorica
1 parent 017373e commit 3373ec9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/test_combinatorica.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ def test_combinatorica():
163163
# "6 5 4 3 2 1\n",
164164
# "Symmetric group S_n. S_n is not commutative. Page 17"
165165
# ),
166+
(
167+
"InversePermutation[{4,8,5,2,1,3,7,6}]",
168+
"{5, 4, 6, 1, 3, 8, 7, 2}",
169+
"InversePermutation: 7 is fixed point. Page 18",
170+
),
166171
(
167172
"KSubsets[Range[5], 3]",
168173
"{{1, 2, 3}, {1, 2, 4}, {1, 2, 5}, {1, 3, 4}, {1, 3, 5}, {1, 4, 5}, "

0 commit comments

Comments
 (0)