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