示例#1
0
 def test_TV10(self):
     print 'Test case TV10'
     results = [['dummy', 't'], ['dummy', 'e'], ['dummy', 's']]
     print 'expected value: -1'
     self.assertEqual(calcMajority(results), -1)
示例#2
0
 def test_TV3(self):
     print 'Test case TV3'
     results = [['dummy', -1], ['dummy', 3], ['dummy', 3]]
     print 'expected value: 3'
     self.assertEqual(calcMajority(results), 3)
示例#3
0
 def test_TV9(self):
     print 'Test case TV9'
     results = [['dummy', 7.5], ['dummy', 7.5], ['dummy', 7.5]]
     print 'expected value: -1'
     self.assertEqual(calcMajority(results), -1)
示例#4
0
 def test_TV2(self):
     print 'Test case TV2'
     results = [['dummy', 1], ['dummy', 2], ['dummy', 3]]
     print 'expected value: 2'
     self.assertEqual(calcMajority(results), 2)