def test_to_char_array_list(self, list_val): """ to_char_array() testing with param: :param list_val: random list of ascii strings """ pointer, leng = to_char_array(list_val) self.verify_c_type(pointer, leng) py_txt = self.reverse_case(pointer, leng, to_char_array) assert b("".join(list_val)) == py_txt
def test_to_char_array_string(self, txt_val): """ to_char_array() with param: :param txt_val: random string """ pointer, leng = to_char_array(txt_val) self.verify_c_type(pointer, leng) py_txt = self.reverse_case(pointer, leng, to_char_array) assert b(txt_val) == py_txt