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.0 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.0.17 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 码力 | 652 页 | 4.00 MB | 1 年前3
Conan 2.1 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.1.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 码力 | 694 页 | 4.13 MB | 1 年前3
Conan 2.5 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.5.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 码力 | 769 页 | 4.70 MB | 1 年前3
Conan 2.4 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.4.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 码力 | 769 页 | 4.69 MB | 1 年前3
Conan 2.3 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.3.2 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 码力 | 748 页 | 4.65 MB | 1 年前3
Conan 2.2 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.2.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 码力 | 718 页 | 4.46 MB | 1 年前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 | 10 月前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 | 10 月前3
Conan 1.42 DocumentationThere are other methods of installation available, including standalone installers, which don’t require a Python instal- lation. See Install docs. Configurations Configurations contain hooks, profiles install with another user $ pip install --user conan. • Some Linux distros, such as Linux Mint, require a restart (shell restart, or logout/system if not enough) after installation, so Conan is found in packagename/1.2.0 Overriding requirements You can specify multiple requirements and override transitive “require’s requirements”. In our example, Conan in- stalled the Poco package and all its requirements transitively:0 码力 | 841 页 | 7.12 MB | 1 年前3
共 160 条
- 1
- 2
- 3
- 4
- 5
- 6
- 16













