Exemple #1
0
 def test1(self):
     a = '1'
     s = Solution()
     res = s.foo(a)
     self.assertEqual(1, res)
Exemple #2
0
 def test6(self):
     a = '654321'
     s = Solution()
     res = s.foo(a)
     self.assertEqual(2, res)
Exemple #3
0
 def test4(self):
     a = '1111'
     s = Solution()
     res = s.foo(a)
     self.assertEqual(5, res)
Exemple #4
0
 def test5(self):
     a = '0111'
     s = Solution()
     res = s.foo(a)
     self.assertEqual(0, res)
Exemple #5
0
 def test3(self):
     a = '2626'
     s = Solution()
     res = s.foo(a)
     self.assertEqual(4, res)