Lines Matching defs:string
25 #include <string.h>
46 static void assert_parse_string(const char *string, const char *expected)
49 buffer.content = (const unsigned char*)string;
50 buffer.length = strlen(string) + sizeof("");
53 TEST_ASSERT_TRUE_MESSAGE(parse_string(item, &buffer), "Couldn't parse string.");
60 static void assert_not_parse_string(const char * const string)
63 buffer.content = (const unsigned char*)string;
64 buffer.length = strlen(string) + sizeof("");
67 TEST_ASSERT_FALSE_MESSAGE(parse_string(item, &buffer), "Malformed string should not be accepted.");
95 assert_not_parse_string("this\" is not a string\"");
117 const char string[] = "\"~!@\\\\#$%^&*()\\\\\\\\-\\\\+{}[]:\\\\;\\\\\\\"\\\\<\\\\>?/.,DC=ad,DC=com\"";
118 assert_parse_string(string, "~!@\\#$%^&*()\\\\-\\+{}[]:\\;\\\"\\<\\>?/.,DC=ad,DC=com");