示例#1
0
 def test_strLength_general2(self):
     self.assertEquals(11, stringlib.strLength("Sub 2 Pewds"))
示例#2
0
 def test_strLength_general2(self):
     self.assertEqual(6, stringlib.strLength("yeyeye"))
示例#3
0
 def test_strLength_general1(self):
     self.assertEquals(5, stringlib.strLength("hello"))
示例#4
0
 def test_strLength_unusual(self):
     self.assertEqual(2, stringlib.strLength(56))
示例#5
0
 def test_strLength_corner(self):
     self.assertEqual(0, stringlib.strLength(""))
示例#6
0
 def test_strLength_general2(self):
     self.assertEquals(3, stringlib.strLength("cat"))
示例#7
0
 def test_strLength_unusual_integer(self):
     self.assertEquals(0, stringlib.strLength(5))
示例#8
0
 def test_strLength_corner_emptystring(self):
     self.assertEquals(0, stringlib.strLength(""))