This catches the issue found in 293915.
PR: 293915
Reported by: safonov.paul@gmail.com
Differential D56037
libc/tests/string: add a more comprehensive unit test for strrchr() Authored by fuz on Sun, Mar 22, 9:41 PM. Tags None Referenced Files
Subscribers
Details
Diff Detail
Event TimelineComment Actions A lot of important details are missing from these tests in terms of your thought process in these tests doing what they do, why assertions are being made, etc. These tests aren't really maintainable in their current form longterm.
Comment Actions This test is an adaption of the memrchr test with minor modifications. For example, one of the things I do when debugging is to temporarily change the boundaries of a loop to only the cases where I have observed a failure, allowing me to go directly to that iteration in the debugger. This sort of thing is really annoying to do when everything is spammed with symbolic constants.
Comment Actions LGTM
Comment Actions @ngie Is it better now with comments? I don't really want to add symbolic constants as they make the unit test a whole lot less useful as a debug tool than it currently is. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||