summaryrefslogtreecommitdiff
path: root/test/str_ut.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/str_ut.c')
-rw-r--r--test/str_ut.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/str_ut.c b/test/str_ut.c
index 9674a59f2a6..058b3594379 100644
--- a/test/str_ut.c
+++ b/test/str_ut.c
@@ -257,6 +257,8 @@ static int str_trailing(struct unit_test_state *uts)
ut_asserteq(123, trailing_strtoln(str1, str1 + 6));
ut_asserteq(-1, trailing_strtoln(str1, str1 + 9));
+ ut_asserteq(3, trailing_strtol("a3"));
+
return 0;
}
STR_TEST(str_trailing, 0);