- 授权协议: 未知
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: https://bitbucket.org/davidcorne/unitcpp
- 软件文档: https://bitbucket.org/davidcorne/unitcpp
软件介绍
UnitC++ 是一个流行的、轻量级的,只包含 C++ 头文件的一个单元测试库。
示例代码:
#include <UnitCpp/Test.h>
TEST(MyString, length_test)
{
MyString str("This is a string");
TEST_EQUAL(str.length(), 16);
TEST_NOT_EQUAL(str.length(), 17);
TEST_LESS_THAN(str.length(), 20);
TEST_MORE_THAN(str.length(), 10);
TEST_APPROX_EQUAL(str.length(), 15, 1.1); // test the length is within 1.1 of 15
}
TEST(MyString, validity_test)
{
MyString invalid_string;
TEST_FALSE(invalid_string.valid());
MyString valid_string("");
TEST_TRUE(valid_string.valid());
#ifdef UNITCPP_TEST_THROWS_AVAILABLE
TEST_THROWS([&](){invalid_string.length();}, MyString::InvalidStringException);
#endif // UNITCPP_TEST_THROWS_AVAILABLE
}
Iterative Methods for Sparse Linear Systems, Second Edition
Yousef Saad / Society for Industrial and Applied Mathematics / 2003-04-30 / USD 102.00
Tremendous progress has been made in the scientific and engineering disciplines regarding the use of iterative methods for linear systems. The size and complexity of linear and nonlinear systems arisi......一起来看看 《Iterative Methods for Sparse Linear Systems, Second Edition》 这本书的介绍吧!
