Lines Matching refs:trim
261 ATF_TEST_CASE(trim);
262 ATF_TEST_CASE_HEAD(trim)
264 set_md_var("descr", "Tests the trim function");
266 ATF_TEST_CASE_BODY(trim)
268 using atf::text::trim;
270 ATF_REQUIRE_EQ(trim(""), "");
271 ATF_REQUIRE_EQ(trim(" "), "");
272 ATF_REQUIRE_EQ(trim("\t"), "");
274 ATF_REQUIRE_EQ(trim(" foo"), "foo");
275 ATF_REQUIRE_EQ(trim("\t foo"), "foo");
276 ATF_REQUIRE_EQ(trim(" \tfoo"), "foo");
277 ATF_REQUIRE_EQ(trim("foo\t "), "foo");
278 ATF_REQUIRE_EQ(trim("foo \t"), "foo");
280 ATF_REQUIRE_EQ(trim("foo bar"), "foo bar");
281 ATF_REQUIRE_EQ(trim("\t foo bar"), "foo bar");
282 ATF_REQUIRE_EQ(trim(" \tfoo bar"), "foo bar");
283 ATF_REQUIRE_EQ(trim("foo bar\t "), "foo bar");
284 ATF_REQUIRE_EQ(trim("foo bar \t"), "foo bar");
385 ATF_ADD_TEST_CASE(tcs, trim);