예제 #1
0
파일: palindromsTests.py 프로젝트: bbyk/cwo
 def test_total(self):
     foo = "abbcccc"
     foo = set(Solution.swaps(foo))
     bar = "bcccbac"
     bar = set(Solution.swaps(bar))
     pass
예제 #2
0
파일: palindromsTests.py 프로젝트: bbyk/cwo
 def test_swaps(self):
     swaps = list(Solution.swaps("cdbbaadc"))
     self.assertEqual(28, len(swaps))