Lines Matching refs:streq_skip_trailing_chars
958 TEST(streq_skip_trailing_chars) { in TEST() argument
960 assert_se(streq_skip_trailing_chars("foo bar", "foo bar", NULL)); in TEST()
961 assert_se(streq_skip_trailing_chars("foo", "foo", NULL)); in TEST()
962 assert_se(streq_skip_trailing_chars("foo bar ", "foo bar", NULL)); in TEST()
963 assert_se(streq_skip_trailing_chars("foo bar", "foo bar\t\t", NULL)); in TEST()
964 assert_se(streq_skip_trailing_chars("foo bar ", "foo bar\t\t", NULL)); in TEST()
965 assert_se(streq_skip_trailing_chars("foo\nbar", "foo\nbar", NULL)); in TEST()
966 assert_se(streq_skip_trailing_chars("\t\tfoo bar", "\t\tfoo bar", NULL)); in TEST()
967 assert_se(streq_skip_trailing_chars(" foo bar\t", " foo bar\n", NULL)); in TEST()
969 assert_se(!streq_skip_trailing_chars("foobar", "foo bar", NULL)); in TEST()
970 assert_se(!streq_skip_trailing_chars("foo\nbar", "foo\tbar", NULL)); in TEST()
971 assert_se(!streq_skip_trailing_chars("\t\nfoo bar", "\t foo bar", NULL)); in TEST()
973 assert_se(streq_skip_trailing_chars("foo bar ", "foo bar", WHITESPACE)); in TEST()
974 assert_se(!streq_skip_trailing_chars("foo bar ", "foo bar", NEWLINE)); in TEST()
976 assert_se(streq_skip_trailing_chars(NULL, NULL, NULL)); in TEST()
977 assert_se(streq_skip_trailing_chars("", "", NULL)); in TEST()
978 assert_se(!streq_skip_trailing_chars(NULL, "foo bar", NULL)); in TEST()
979 assert_se(!streq_skip_trailing_chars("foo", NULL, NULL)); in TEST()
980 assert_se(!streq_skip_trailing_chars("", "f", NULL)); in TEST()