tests: Add test for release_is_new()

Also refactor the function so we pass it the current version
and don't rely on the define inside of it.

This function only allows version format in the style of "x.y.z".
This commit is contained in:
Michael Vetter
2026-02-25 12:07:46 +01:00
parent ea7a59808a
commit 549f28fa0d
6 changed files with 46 additions and 4 deletions

View File

@@ -44,3 +44,4 @@ void test_strtoi_range_null_err_msg(void** state);
void test_string_matches_one_of_edge_cases(void** state);
void test_valid_tls_policy_option(void** state);
void get_mentions_tests(void** state);
void release_is_new_tests(void** state);