Back to Basics Testing"gtest/gtest.h" std::string left_pad(std::string const& str, size_t min_len, char pad_char=' '); REQUIRE(left_pad("", 0) == ""); ASSERT_EQ(left_pad("", 0), "");58 TEST_CASE("left_pad pads strings to a left_pad(std::string const& str, size_t min_len, char pad_char=' '); REQUIRE(left_pad("", 0) == ""); ASSERT_EQ(left_pad("", 0), ""); REQUIRE(left_pad("abc", 0) == "abc"); ASSERT_EQ(left_pad("abc", 0), "abc"); left_pad(std::string const& str, size_t min_len, char pad_char=' '); REQUIRE(left_pad("", 0) == ""); ASSERT_EQ(left_pad("", 0), ""); REQUIRE(left_pad("abc", 0) == "abc"); ASSERT_EQ(left_pad("abc", 0), "abc");0 码力 | 79 页 | 25.86 MB | 6 月前3
Conan 2.10 Documentationlocking mechanism to avoid possible disruption from packages in ConanCenter that are updated and require latest Conan version. • Configuration and automatic tools detection, like the detection of the default all the artifacts, binaries, and build files that is completely independent of Conan and no longer require Conan at all to build. 10 Chapter 2. What’s new in Conan 2 Conan Documentation, Release 2.10.1 command. 2. Use a system installer, or create your own self-contained Conan executable, to not require Python in your system. 3. Running Conan from sources. 3.1 Install with pip (recommended) To install0 码力 | 803 页 | 5.02 MB | 11 月前3
Conan 2.9 Documentationlocking mechanism to avoid possible disruption from packages in ConanCenter that are updated and require latest Conan version. • Configuration and automatic tools detection, like the detection of the default all the artifacts, binaries, and build files that is completely independent of Conan and no longer require Conan at all to build. 10 Chapter 2. What’s new in Conan 2 Conan Documentation, Release 2.9.3 command. 2. Use a system installer, or create your own self-contained Conan executable, to not require Python in your system. 3. Running Conan from sources. 3.1 Install with pip (recommended) To install0 码力 | 795 页 | 4.99 MB | 11 月前3
Conan 2.7 Documentationlocking mechanism to avoid possible disruption from packages in ConanCenter that are updated and require latest Conan version. • Configuration and automatic tools detection, like the detection of the default all the artifacts, binaries, and build files that is completely independent of Conan and no longer require Conan at all to build. 10 Chapter 2. What’s new in Conan 2 Conan Documentation, Release 2.7.1 command. 2. Use a system installer, or create your own self-contained Conan executable, to not require Python in your system. 3. Running Conan from sources. 3.1 Install with pip (recommended) To install0 码力 | 779 页 | 4.93 MB | 11 月前3
Conan 2.8 Documentationlocking mechanism to avoid possible disruption from packages in ConanCenter that are updated and require latest Conan version. • Configuration and automatic tools detection, like the detection of the default all the artifacts, binaries, and build files that is completely independent of Conan and no longer require Conan at all to build. 10 Chapter 2. What’s new in Conan 2 Conan Documentation, Release 2.8.1 command. 2. Use a system installer, or create your own self-contained Conan executable, to not require Python in your system. 3. Running Conan from sources. 3.1 Install with pip (recommended) To install0 码力 | 785 页 | 4.95 MB | 11 月前3
Conan 2.6 Documentationlocking mechanism to avoid possible disruption from packages in ConanCenter that are updated and require latest Conan version. • Configuration and automatic tools detection, like the detection of the default all the artifacts, binaries, and build files that is completely independent of Conan and no longer require Conan at all to build. 10 Chapter 2. What’s new in Conan 2 Conan Documentation, Release 2.6.0 command. 2. Use a system installer, or create your own self-contained Conan executable, to not require Python in your system. 3. Running Conan from sources. 3.1 Install with pip (recommended) To install0 码力 | 777 页 | 4.91 MB | 11 月前3
Noexcept: Enabling Testing of Contract ChecksGuild of America tell us about software development? • Good programs require good contracts. • Corollary: Good contracts require good enforcement. • Contract checks help catch bugs early in the process vector::front() { // TODO } 23 // vector_test.cpp TEST_CASE("vector::front") { vector v = {1, 2, 3}; REQUIRE(v.front() == 1); } Copyright (c) Timur Doumler | @timur_audio | https://timur.audio return data[0]; } 24 // vector_test.cpp TEST_CASE("vector::front") { vector v = {1, 2, 3}; REQUIRE(v.front() == 1); } Copyright (c) Timur Doumler | @timur_audio | https://timur.audio 0 码力 | 90 页 | 1.38 MB | 6 月前3
Django CMS 3.9.x Documentationmore automated publishing. It’s key to the way that django CMS integration works that it doesn’t require you to modify your other applications unless you want to. This is particularly important when you’re foreign keys, we really want to be able to edit those questions at the same time too. That would require a much more sophisticated form and processing than is possible within the scope of this tutorial very well documented on the systems’ respective websites. Whichever database you use, it will also require the appropriate Python adaptor to be installed: pip install psycopg2 # for Postgres pip install0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 3.8.x Documentationmore automated publishing. It’s key to the way that django CMS integration works that it doesn’t require you to modify your other applications unless you want to. This is particularly important when you’re foreign keys, we really want to be able to edit those questions at the same time too. That would require a much more sophisticated form and processing than is possible within the scope of this tutorial very well documented on the systems’ respective websites. Whichever database you use, it will also require the appropriate Python adaptor to be installed: pip install psycopg2 # for Postgres pip install0 码力 | 413 页 | 1.67 MB | 6 月前3
Django CMS 4.0.x Documentationmore automated publishing. It’s key to the way that django CMS integration works that it doesn’t require you to modify your other applications unless you want to. This is particularly important when you’re foreign keys, we really want to be able to edit those questions at the same time too. That would require a much more sophisticated form and processing than is possible within the scope of this tutorial very well documented on the systems’ respective websites. Whichever database you use, it will also require the appropriate Python adaptor to be installed: 32 Chapter 4. Software version requirements and release0 码力 | 296 页 | 1.79 MB | 6 月前3
共 217 条
- 1
- 2
- 3
- 4
- 5
- 6
- 22













