7 votes

Unit testing for a multi-dimensional array class

Simple things first - GTest provides a main() that you can use - build and link with gtest-main.cc. I get a bunch of compiler ...
  • 60.8k
5 votes
Accepted

Unit testing for a multi-dimensional array class

The biggest issue with your test suite is the fact that you had to manually write four versions to handle tensors of up to four dimensions. You should be able to write generic code to test arbitrary-...
  • 35.7k

Only top scored, non community-wiki answers of a minimum length are eligible