예제 #1
0
파일: test.py 프로젝트: teruhirok/python
 def test1(self):
     expect = [
                 [1,2,3],[1,3,2],
                 [2,1,3],[2,3,1],
                 [3,1,2],[3,2,1]
              ]
     actual = Solution.permute("", [1,2,3])
     self.assertEqual(expect, actual)
예제 #2
0
파일: test.py 프로젝트: teruhirok/python
 def test2(self):
     expect = [
         [1,2],[2,1]
     ]
     actual = Solution.permute("", [1,2])
     self.assertEqual(expect, actual)