Exemple #1
0
   def test_case1(self):
       expected = '''<------------------------------------------------------->
 BC     G      FE         I         D           J   HA'''
       self.assertEqual(
           expected,
           build([
               32767, 32715, 32716, 32750, 32730, 32729, 32722, 32766, 32740,
               32762
           ]))
Exemple #2
0
   def test_sample(self):
       expected = '''<----------------------------->
 A     B  C           D    E'''
       self.assertEqual(expected, build([1990, 1996, 1999, 2011, 2016]))
Exemple #3
0
   def test_case5(self):
       expected = '''<--->
 A'''
       self.assertEqual(expected, build([12345]))
Exemple #4
0
   def test_case4(self):
       expected = '''<------->
 CABED'''
       self.assertEqual(expected, build([2, 3, 1, 5, 4]))
Exemple #5
0
   def test_case2(self):
       expected = '''<---->
 BA'''
       self.assertEqual(expected, build([2015, 2014]))
Exemple #6
0
   def test_case1(self):
       expected = '''<------------------------------------------------------->
 BC     G      FE         I         D           J   HA'''
       self.assertEqual(expected, build([32767, 32715, 32716, 32750, 32730, 32729, 32722, 32766, 32740, 32762]))
Exemple #7
0
   def test_sample(self):
       expected = '''<----------------------------->
 A     B  C           D    E'''
       self.assertEqual(expected, build([1990, 1996, 1999, 2011, 2016]))
Exemple #8
0
   def test_case5(self):
       expected = '''<--->
 A'''
       self.assertEqual(expected, build([12345]))
Exemple #9
0
   def test_case4(self):
       expected = '''<------->
 CABED'''
       self.assertEqual(expected, build([2, 3, 1, 5, 4]))
Exemple #10
0
   def test_case2(self):
       expected = '''<---->
 BA'''
       self.assertEqual(expected, build([2015, 2014]))