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