-
-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
88 changed files
with
4,392 additions
and
3,217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
libs/core/algorithms/tests/unit/container_algorithms/is_sorted_range2.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// Copyright (c) 2015 Daniel Bourgeois | ||
// | ||
// SPDX-License-Identifier: BSL-1.0 | ||
// Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#include <hpx/init.hpp> | ||
|
||
#include <iostream> | ||
#include <string> | ||
#include <vector> | ||
|
||
#include "is_sorted_range_tests2.hpp" | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
template <typename IteratorTag> | ||
void test_sorted2() | ||
{ | ||
using namespace hpx::execution; | ||
test_sorted2(seq, IteratorTag()); | ||
test_sorted2(par, IteratorTag()); | ||
test_sorted2(par_unseq, IteratorTag()); | ||
|
||
test_sorted2_async(seq(task), IteratorTag()); | ||
test_sorted2_async(par(task), IteratorTag()); | ||
|
||
test_sorted2_seq(IteratorTag()); | ||
} | ||
|
||
void sorted_test2() | ||
{ | ||
test_sorted2<std::random_access_iterator_tag>(); | ||
test_sorted2<std::forward_iterator_tag>(); | ||
|
||
using namespace hpx::execution; | ||
|
||
test_sorted2(seq); | ||
test_sorted2(par); | ||
test_sorted2(par_unseq); | ||
|
||
test_sorted2_async(seq(task)); | ||
test_sorted2_async(par(task)); | ||
|
||
test_sorted2_seq(); | ||
} | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
int hpx_main() | ||
{ | ||
sorted_test2(); | ||
|
||
return hpx::local::finalize(); | ||
} | ||
|
||
int main(int argc, char* argv[]) | ||
{ | ||
using namespace hpx::program_options; | ||
options_description desc_commandline( | ||
"Usage: " HPX_APPLICATION_STRING " [options]"); | ||
|
||
std::vector<std::string> const cfg = {"hpx.os_threads=all"}; | ||
|
||
hpx::local::init_params init_args; | ||
init_args.desc_cmdline = desc_commandline; | ||
init_args.cfg = cfg; | ||
|
||
HPX_TEST_EQ_MSG(hpx::local::init(hpx_main, argc, argv, init_args), 0, | ||
"HPX main exited with non-zero status"); | ||
|
||
return hpx::util::report_errors(); | ||
} |
71 changes: 71 additions & 0 deletions
71
libs/core/algorithms/tests/unit/container_algorithms/is_sorted_range3.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// Copyright (c) 2015 Daniel Bourgeois | ||
// | ||
// SPDX-License-Identifier: BSL-1.0 | ||
// Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#include <hpx/init.hpp> | ||
|
||
#include <iostream> | ||
#include <string> | ||
#include <vector> | ||
|
||
#include "is_sorted_range_tests3.hpp" | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
template <typename IteratorTag> | ||
void test_sorted3() | ||
{ | ||
using namespace hpx::execution; | ||
test_sorted3(seq, IteratorTag()); | ||
test_sorted3(par, IteratorTag()); | ||
test_sorted3(par_unseq, IteratorTag()); | ||
|
||
test_sorted3_async(seq(task), IteratorTag()); | ||
test_sorted3_async(par(task), IteratorTag()); | ||
|
||
test_sorted3_seq(IteratorTag()); | ||
} | ||
|
||
void sorted_test3() | ||
{ | ||
test_sorted3<std::random_access_iterator_tag>(); | ||
test_sorted3<std::forward_iterator_tag>(); | ||
|
||
using namespace hpx::execution; | ||
|
||
test_sorted3(seq); | ||
test_sorted3(par); | ||
test_sorted3(par_unseq); | ||
|
||
test_sorted3_async(seq(task)); | ||
test_sorted3_async(par(task)); | ||
|
||
test_sorted3_seq(); | ||
} | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
int hpx_main() | ||
{ | ||
sorted_test3(); | ||
|
||
return hpx::local::finalize(); | ||
} | ||
|
||
int main(int argc, char* argv[]) | ||
{ | ||
using namespace hpx::program_options; | ||
options_description desc_commandline( | ||
"Usage: " HPX_APPLICATION_STRING " [options]"); | ||
|
||
std::vector<std::string> const cfg = {"hpx.os_threads=all"}; | ||
|
||
hpx::local::init_params init_args; | ||
init_args.desc_cmdline = desc_commandline; | ||
init_args.cfg = cfg; | ||
|
||
HPX_TEST_EQ_MSG(hpx::local::init(hpx_main, argc, argv, init_args), 0, | ||
"HPX main exited with non-zero status"); | ||
|
||
return hpx::util::report_errors(); | ||
} |
Oops, something went wrong.