CxxTest/cxxtest — Issue #47: Streamline assert syntax
Author: whart222
Created: 2012-02-11 19:07:13+00:00
State: open

This is a possible enhancement for the v4 development.

Shorten the assertion names: ASSERT_EQ, ASSERT_NE, ASSERT_LT, ASSERT_LE, etc.
(better than TS_ASSERT_LESS_THAN_OR_EQUALS); could leave original TS_*
untouched, could make the new ones TS_ASSERT_EQ or even drop the TS altogether?

This would help moving toward the goal of being "low ceremony".

If I have to type less to create useful tests, then I am more likely to write
more tests.

------- Additional comments from Gašper Ažman Wed Dec 21 09:41:42 -0800 2011 -------

Could we make macro aliases for these? I'm not against this, but having the
longer names might be preferred by another crowd. We aren't really in the
business of providing the minimal possible namespace spam, so having both seems
like a good idea to me.

------- Additional comments from William Hart Wed Dec 21 15:28:39 -0800 2011 -------

I agree that we shouldn't delete the current assertions, but provide both
concise and verbose versions.