Lines Matching refs:p

14         char *p, *z;  in TEST()  local
16 assert_se(p = strdup("\tFoobar\tbar\twaldo\t")); in TEST()
17 assert_se(strip_tab_ansi(&p, NULL, NULL)); in TEST()
18 fprintf(stdout, "<%s>\n", p); in TEST()
19 assert_se(streq(p, " Foobar bar waldo ")); in TEST()
20 free(p); in TEST()
22 …assert_se(p = strdup(ANSI_HIGHLIGHT "Hello" ANSI_NORMAL ANSI_HIGHLIGHT_RED " world!" ANSI_NORMAL)); in TEST()
23 assert_se(strip_tab_ansi(&p, NULL, NULL)); in TEST()
24 fprintf(stdout, "<%s>\n", p); in TEST()
25 assert_se(streq(p, "Hello world!")); in TEST()
26 free(p); in TEST()
28 …assert_se(p = strdup("\x1B[\x1B[\t\x1B[" ANSI_HIGHLIGHT "\x1B[" "Hello" ANSI_NORMAL ANSI_HIGHLIGHT… in TEST()
29 assert_se(strip_tab_ansi(&p, NULL, NULL)); in TEST()
30 assert_se(streq(p, "\x1B[\x1B[ \x1B[\x1B[Hello world!")); in TEST()
31 free(p); in TEST()
33 assert_se(p = strdup("\x1B[waldo")); in TEST()
34 assert_se(strip_tab_ansi(&p, NULL, NULL)); in TEST()
35 assert_se(streq(p, "\x1B[waldo")); in TEST()
36 free(p); in TEST()
38 assert_se(p = strdup("\r\rwaldo")); in TEST()
39 assert_se(strip_tab_ansi(&p, NULL, NULL)); in TEST()
40 assert_se(streq(p, "\r\rwaldo")); in TEST()
41 free(p); in TEST()
43 assert_se(p = strdup("waldo\r\r")); in TEST()
44 assert_se(strip_tab_ansi(&p, NULL, NULL)); in TEST()
45 assert_se(streq(p, "waldo")); in TEST()
46 free(p); in TEST()
48 assert_se(p = strdup("waldo\r\r\n\r\n")); in TEST()
49 assert_se(strip_tab_ansi(&p, NULL, NULL)); in TEST()
50 assert_se(streq(p, "waldo\n\n")); in TEST()
51 free(p); in TEST()
54 assert_se(p = strjoin("something ", urlified, " something-else")); in TEST()
55 assert_se(q = strdup(p)); in TEST()
56 printf("<%s>\n", p); in TEST()
57 assert_se(strip_tab_ansi(&p, NULL, NULL)); in TEST()
58 printf("<%s>\n", p); in TEST()
59 assert_se(streq(p, "something i am a fabulous link something-else")); in TEST()
60 p = mfree(p); in TEST()