mirror of
https://github.com/CLIUtils/CLI11.git
synced 2026-01-19 04:52:08 +00:00
update supported cmake versions and add some tests with newer compilers (#972)
Update and test with some newer compilers and cmake versions --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -696,7 +696,7 @@ TEST_CASE("Validators: ProgramNameSplit", "[helpers]") {
|
||||
TempFile myfile{"program_name1.exe"};
|
||||
{
|
||||
std::ofstream out{myfile};
|
||||
out << "useless string doesn't matter" << std::endl;
|
||||
out << "useless string doesn't matter" << '\n';
|
||||
}
|
||||
auto res =
|
||||
CLI::detail::split_program_name(std::string("./") + std::string(myfile) + " this is a bunch of extra stuff ");
|
||||
@@ -706,7 +706,7 @@ TEST_CASE("Validators: ProgramNameSplit", "[helpers]") {
|
||||
TempFile myfile2{"program name1.exe"};
|
||||
{
|
||||
std::ofstream out{myfile2};
|
||||
out << "useless string doesn't matter" << std::endl;
|
||||
out << "useless string doesn't matter" << '\n';
|
||||
}
|
||||
res = CLI::detail::split_program_name(std::string(" ") + std::string("./") + std::string(myfile2) +
|
||||
" this is a bunch of extra stuff ");
|
||||
@@ -972,7 +972,7 @@ TEST_CASE("AppHelper: Ofstream", "[helpers]") {
|
||||
|
||||
{
|
||||
std::ofstream out{myfile};
|
||||
out << "this is output" << std::endl;
|
||||
out << "this is output" << '\n';
|
||||
}
|
||||
|
||||
CHECK(CLI::ExistingFile(myfile).empty());
|
||||
|
||||
Reference in New Issue
Block a user