diff options
author | Tito Ragusa <farmatito@tiscali.it> | 2015-09-15 23:38:01 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-09-15 23:38:01 +0200 |
commit | f085344d5c4de46d0ef3e15a97ef444fd7cc3194 (patch) | |
tree | 1659ed4546a4cbcbca19eb1a4a547d3e8360f466 | |
parent | 875297378cdbebb1278a4595f9fffffca3fc2303 (diff) | |
download | busybox-w32-f085344d5c4de46d0ef3e15a97ef444fd7cc3194.tar.gz busybox-w32-f085344d5c4de46d0ef3e15a97ef444fd7cc3194.tar.bz2 busybox-w32-f085344d5c4de46d0ef3e15a97ef444fd7cc3194.zip |
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>
-rw-r--r-- | libbb/compare_string_array.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c index 3dbd3eb1a..2f51237a3 100644 --- a/libbb/compare_string_array.c +++ b/libbb/compare_string_array.c | |||
@@ -159,6 +159,7 @@ BBUNIT_DEFINE_TEST(is_suffixed_with) | |||
159 | BBUNIT_ASSERT_STREQ("foo", is_suffixed_with("foo", "foo")); | 159 | BBUNIT_ASSERT_STREQ("foo", is_suffixed_with("foo", "foo")); |
160 | BBUNIT_ASSERT_STREQ("", is_suffixed_with("foo", "")); | 160 | BBUNIT_ASSERT_STREQ("", is_suffixed_with("foo", "")); |
161 | BBUNIT_ASSERT_STREQ("", is_suffixed_with("", "")); | 161 | BBUNIT_ASSERT_STREQ("", is_suffixed_with("", "")); |
162 | BBUNIT_ASSERT_STREQ("foo", is_suffixed_with("barfoofoo", "foo")); | ||
162 | 163 | ||
163 | BBUNIT_ASSERT_NULL(is_suffixed_with("foo", "bar foo")); | 164 | BBUNIT_ASSERT_NULL(is_suffixed_with("foo", "bar foo")); |
164 | BBUNIT_ASSERT_NULL(is_suffixed_with("foo foo", "bar")); | 165 | BBUNIT_ASSERT_NULL(is_suffixed_with("foo foo", "bar")); |