Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests for LGM string functions, unify string funcs under Lgm_Misc #54

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

drsteve
Copy link
Owner

@drsteve drsteve commented Sep 20, 2024

This PR adds unit tests for the four main string handling functions: Lgm_StrToLower, Lgm_StrToUpper, Lgm_ReplaceSubString, and Lgm_ReplaceSubString2.

The case conversion functions have also been moved to join the substring replacement functions in Lgm_Misc to group like with like.

Finally, the null comparison in the case conversion now dereferences the char pointer (cleans up some compiler complaints).

@drsteve drsteve merged commit c16a62d into master Sep 20, 2024
1 check passed
@drsteve drsteve deleted the test_string_manip branch September 20, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant