阅读背景:

在函数/类声明附近编写C ++单元测试

来源:互联网 

When it comes to writing unit tests for functions or classes in C++, it seems popular writing them in separate source files from the original declarations and definitions (e.g. math_test.cpp for math.hpp/math.cpp). I wonder if writing them near the declarations might be better for the following reasons:When it comes to writing unit tests for functio




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: