Exemplo n.º 1
0
 def test_split_ptr_to_int_correctly(self):
     self.assertEqual(split_param_to_type_and_name('int ** Tname'),
                      ('int **', 'Tname'))
Exemplo n.º 2
0
 def test_split_const_int_correctly(self):
     self.assertEqual(split_param_to_type_and_name('const int Tname'),
                      ('const int', 'Tname'))
Exemplo n.º 3
0
 def test_split_struct_correctly(self):
     self.assertEqual(split_param_to_type_and_name('struct s Tname'),
                      ('struct s', 'Tname'))
Exemplo n.º 4
0
 def test_split_const_pointer_correctly(self):
     self.assertEqual(split_param_to_type_and_name('int * const'), ('int * const', ''))
Exemplo n.º 5
0
 def test_split_empty_string_correctly_without_error(self):
     self.assertEqual(split_param_to_type_and_name(''), ('', ''))
Exemplo n.º 6
0
 def test_split_long_correctly(self):
     self.assertEqual(split_param_to_type_and_name('long'), ('long', ''))
Exemplo n.º 7
0
 def test_split_unsigned_int_correctly(self):
     self.assertEqual(split_param_to_type_and_name('unsigned int'), ('unsigned int', ''))
Exemplo n.º 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', ''))