Exemple #1
0
 def test_split_ptr_to_int_correctly(self):
     self.assertEqual(split_param_to_type_and_name('int ** Tname'),
                      ('int **', 'Tname'))
Exemple #2
0
 def test_split_const_int_correctly(self):
     self.assertEqual(split_param_to_type_and_name('const int Tname'),
                      ('const int', 'Tname'))
Exemple #3
0
 def test_split_struct_correctly(self):
     self.assertEqual(split_param_to_type_and_name('struct s Tname'),
                      ('struct s', 'Tname'))
Exemple #4
0
 def test_split_const_pointer_correctly(self):
     self.assertEqual(split_param_to_type_and_name('int * const'), ('int * const', ''))
Exemple #5
0
 def test_split_empty_string_correctly_without_error(self):
     self.assertEqual(split_param_to_type_and_name(''), ('', ''))
Exemple #6
0
 def test_split_long_correctly(self):
     self.assertEqual(split_param_to_type_and_name('long'), ('long', ''))
Exemple #7
0
 def test_split_unsigned_int_correctly(self):
     self.assertEqual(split_param_to_type_and_name('unsigned int'), ('unsigned int', ''))
Exemple #8
0
 def test_split_const_to_typedefed_type_MY_INT_correctly(self):
     self.assertEqual(split_param_to_type_and_name('const MY_INT'),
                      ('const MY_INT', ''))