summaryrefslogtreecommitdiff
path: root/tests/core/string.c
Commit message (Collapse)AuthorAgeFilesLines
* util: introduce `git__prefixncmp` and consolidate implementationsEdward Thomson2017-12-201-0/+42
| | | | | | | | | | | Introduce `git_prefixncmp` that will search up to the first `n` characters of a string to see if it is prefixed by another string. This is useful for examining if a non-null terminated character array is prefixed by a particular substring. Consolidate the various implementations of `git__prefixcmp` around a single core implementation and add some test cases to validate its behavior.
* git__tolower: test that some non-ASCII downcasing isn'tEdward Thomson2015-05-291-0/+4
|
* git__strcasecmp: treat input bytes as unsignedEdward Thomson2015-05-291-0/+38
| | | | | | Treat input bytes as unsigned before doing arithmetic on them, lest we look at some non-ASCII byte (like a UTF-8 character) as a negative value and perform the comparison incorrectly.
* Rename tests-clar to testsBen Straub2013-11-141-0/+41