unit test macros #3400
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Using asserts within unit tests is entirely unsatisfactory: when they fail you can't see why without editing the code or breaking out a debugger, and it's difficult to be intelligent about pointing out where the problem is (e.g. maybe the second element of a vector doesn't match the expected value).
Seems like it would be possible to use the new whiz bang macro system to address this. Lots of unit test frameworks out there, but it's probably best to look at one for a statically typed language like Nunit.
The text was updated successfully, but these errors were encountered: