libbb: another unit test for is_suffixed_with
Suggested by Bartosz Golaszewski. Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
875297378c
commit
f085344d5c
@ -159,6 +159,7 @@ BBUNIT_DEFINE_TEST(is_suffixed_with)
|
||||
BBUNIT_ASSERT_STREQ("foo", is_suffixed_with("foo", "foo"));
|
||||
BBUNIT_ASSERT_STREQ("", is_suffixed_with("foo", ""));
|
||||
BBUNIT_ASSERT_STREQ("", is_suffixed_with("", ""));
|
||||
BBUNIT_ASSERT_STREQ("foo", is_suffixed_with("barfoofoo", "foo"));
|
||||
|
||||
BBUNIT_ASSERT_NULL(is_suffixed_with("foo", "bar foo"));
|
||||
BBUNIT_ASSERT_NULL(is_suffixed_with("foo foo", "bar"));
|
||||
|
Loading…
Reference in New Issue
Block a user