May 2017
Intermediate to advanced
590 pages
17h 18m
English
To write tests using the traditional style, with test cases and test functions, do this:
TEST_CASE("test construction", "[create]") { // define sections here }
TEST_CASE("test construction", "[create]") { SECTION("test constructor") { auto p = point3d{ 1,2,3 }; REQUIRE(p.x() == 1); REQUIRE(p.y() == 2); REQUIRE(p.z() == 4); } }
TEST_CASE("test operations", "[modify]") { SECTION("test ...Read now
Unlock full access