Lines Matching defs:trim
257 ATF_TEST_CASE(trim);
258 ATF_TEST_CASE_HEAD(trim)
260 set_md_var("descr", "Tests the trim function");
262 ATF_TEST_CASE_BODY(trim)
264 using atf::text::trim;
266 ATF_REQUIRE_EQ(trim(""), "");
267 ATF_REQUIRE_EQ(trim(" "), "");
268 ATF_REQUIRE_EQ(trim("\t"), "");
270 ATF_REQUIRE_EQ(trim(" foo"), "foo");
271 ATF_REQUIRE_EQ(trim("\t foo"), "foo");
272 ATF_REQUIRE_EQ(trim(" \tfoo"), "foo");
273 ATF_REQUIRE_EQ(trim("foo\t "), "foo");
274 ATF_REQUIRE_EQ(trim("foo \t"), "foo");
276 ATF_REQUIRE_EQ(trim("foo bar"), "foo bar");
277 ATF_REQUIRE_EQ(trim("\t foo bar"), "foo bar");
278 ATF_REQUIRE_EQ(trim(" \tfoo bar"), "foo bar");
279 ATF_REQUIRE_EQ(trim("foo bar\t "), "foo bar");
280 ATF_REQUIRE_EQ(trim("foo bar \t"), "foo bar");
381 ATF_ADD_TEST_CASE(tcs, trim);