silentbicycle / greatest

A C testing library in 1 file. No dependencies, no dynamic allocation. ISC licensed.
ISC License
1.48k stars 108 forks source link

Typo in comment in greatest.h #89

Closed orangewait closed 5 years ago

orangewait commented 5 years ago

Hello, I'm studying greatest and I'm gonna use it on my next project. Thanks for your work!

I've found a tiny pedantic issue in greatest.h : in the comment above the definition of GREATEST_ASSERT_STRN_EQm strcmp should be replaced with strncmp

https://github.com/silentbicycle/greatest/blob/master/greatest.h#L542

Best Regards, Danilo

silentbicycle commented 5 years ago

Thanks! It will be fixed in the next release.

Please let me know if you have any thoughts about general usability. Some things are a little tricky because I'm avoiding dynamic allocation and non-portable extensions (such as gcc's typeof), but otherwise I'm trying to make it easy to use.