source: utilitiespy/test/immutablelist/PermutationWithoutReturnTest.py

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

#413 added Permutations

File size: 455 bytes
Line 
1from unittest.case import TestCase
2from tudelft.utilities.immutablelist.FixedList import FixedList
3from tudelft.utilities.immutablelist.PermutationsWithoutReturn import PermutationsWithoutReturn
4
5class 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.