예제 #1
0
 def test_generate_symbols_gt_26(self):
     """Test generating more 26 symbols (the first boundary)."""
     self.assertEqual(TruthTable.generate_symbols(27), [
         'AA', 'AB', 'AC', 'AD', 'AE', 'AF', 'AG', 'AH', 'AI', 'AJ', 'AK',
         'AL', 'AM', 'AN', 'AO', 'AP', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AV',
         'AW', 'AX', 'AY', 'AZ', 'BA'
     ])
예제 #2
0
 def test_generate_symbols_0(self):
     """Test generating 0 symbols."""
     self.assertEqual(TruthTable.generate_symbols(0), [])
예제 #3
0
 def test_generate_symbols_eq_26(self):
     """Test generating exactly 26 symbols."""
     self.assertEqual(TruthTable.generate_symbols(26), [
         'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
         'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'
     ])
예제 #4
0
 def test_generate_symbols_lt_26(self):
     """Test generating less than 26 symbols."""
     self.assertEqual(TruthTable.generate_symbols(5),
                      ['A', 'B', 'C', 'D', 'E'])