Line | |
---|
1 | from unittest.case import TestCase
|
---|
2 | from tudelft.utilities.immutablelist.FixedList import FixedList
|
---|
3 | from tudelft.utilities.immutablelist.PermutationsWithReturn import PermutationsWithReturn
|
---|
4 |
|
---|
5 | class 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.