def test_split_ptr_to_int_correctly(self): self.assertEqual(split_param_to_type_and_name('int ** Tname'), ('int **', 'Tname'))
def test_split_const_int_correctly(self): self.assertEqual(split_param_to_type_and_name('const int Tname'), ('const int', 'Tname'))
def test_split_struct_correctly(self): self.assertEqual(split_param_to_type_and_name('struct s Tname'), ('struct s', 'Tname'))
def test_split_const_pointer_correctly(self): self.assertEqual(split_param_to_type_and_name('int * const'), ('int * const', ''))
def test_split_empty_string_correctly_without_error(self): self.assertEqual(split_param_to_type_and_name(''), ('', ''))
def test_split_long_correctly(self): self.assertEqual(split_param_to_type_and_name('long'), ('long', ''))
def test_split_unsigned_int_correctly(self): self.assertEqual(split_param_to_type_and_name('unsigned int'), ('unsigned int', ''))
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', ''))