source: utilitiespy/test/immutablelist/PermutationWithReturnTest.py

Last change on this file was 1343, checked in by wouter, 5 weeks ago

#413 added Permutations

File size: 443 bytes
Line 
1from unittest.case import TestCase
2from tudelft.utilities.immutablelist.FixedList import FixedList
3from tudelft.utilities.immutablelist.PermutationsWithReturn import PermutationsWithReturn
4
5class PermutationWithReturnTest(TestCase):
6 def test(self):
7 source:FixedList[str] = FixedList([ "a", "b", "c", "d" ])
8 p :PermutationsWithReturn[str] = PermutationsWithReturn(source, 3)
9 self.assertEquals(64, p.size())
10 print("data=" + str(p) )
11
Note: See TracBrowser for help on using the repository browser.