4 comments

[ 3.0 ms ] story [ 22.5 ms ] thread
TL;DR - Writing assertion based tests is great.
Sure beats subclassing test case factory adapters and telling your compiler bedtime stories ;)
I think your approach is very interesting. I had implemented something similar but reverted to a simple API for tests as I felt it was too complicated to use (e.g. I had "testEQxxx()" for xxx in (int, str, ptr, ...). Actually I'm putting together a library much similar to yours (https://github.com/rdentato/clibutl) and I would love to get in touch with you to share experiences (and C horror stories :) ).