예제 #1
0
 def test0111(self):
     self.assertEqual(main([0,1,1,1]),3)
예제 #2
0
 def test2111(self):
     self.assertEqual(main([2,1,1,1]),5)
예제 #3
0
 def testOneEachNoGreen(self):
     self.assertEqual(main([1,1,1,0]),3)
예제 #4
0
 def test0211(self):
     self.assertEqual(main([0,2,1,1]),4)
예제 #5
0
 def testSingleRubyEach(self):
     self.assertEqual(main([1,1,1,1]),4)
예제 #6
0
 def testOnlyYellow(self):
     self.assertEqual(main([0,0,1,0]),1)
예제 #7
0
 def testOnlyGreen(self):
     self.assertEqual(main([0,0,0,1]),1)
예제 #8
0
 def testOnlyRed(self):
     self.assertEqual(main([0,1,0,0]),1)
예제 #9
0
 def testOnlyBlue(self):
     self.assertEqual(main([1,0,0,0]),1)