In the C track for word-count, there are two macros for error-handling.
#define EXCESSIVE_LENGTH_WORD -1
#define EXCESSIVE_NUMBER_OF_WORDS -2
The comments in the count_words()
function specifies it should return a negative number if an error occurs, but this isn’t currently being tested for.
Could I PR a couple small test cases to ensure the function returns the expected error code? Or should the description be reworded? Or mattshu’s overthinking things again? :)