예제 #1
0
 def testJScore0Score(self):
     self.assertEqual(hw.jscore("abcdefg", "hijklmnopqrs"), 0)
예제 #2
0
 def testJScoreBothEmpty(self):
     self.assertEqual(hw.jscore("", ""), 0)
예제 #3
0
 def testJScoreBackward(self):
     self.assertEqual(hw.jscore("abcdefg", "gfedcbb"), 6)
예제 #4
0
 def testJScoreEs(self):
     self.assertEqual(hw.jscore("geese", "eeeek"), 3)
예제 #5
0
 def testJScoreOneEmpty(self):
     self.assertEqual(hw.jscore("", "donut"), 0)
예제 #6
0
 def testJScore0Score(self):
     self.assertEqual(hw.jscore('abcdefg', 'hijklmnopqrs'), 0)
예제 #7
0
 def testJScoreBackward(self):
     self.assertEqual(hw.jscore('abcdefg', 'gfedcbb'), 6)
예제 #8
0
 def testJScoreBothEmpty(self):
     self.assertEqual(hw.jscore('', ''), 0)
예제 #9
0
 def testJScoreOneEmpty(self):
     self.assertEqual(hw.jscore('', 'donut'), 0)
예제 #10
0
 def testJScoreEs(self):
     self.assertEqual(hw.jscore('geese', 'eeeek'), 3)