Unverified Commit 7bf007f2 authored by Niels Lohmann's avatar Niels Lohmann Committed by GitHub

Merge pull request #879 from nlohmann/feature/algorithms

 re-added tests for algorithms
parents 980795b6 4c871c58
...@@ -256,7 +256,6 @@ TEST_CASE("algorithms") ...@@ -256,7 +256,6 @@ TEST_CASE("algorithms")
SECTION("set operations") SECTION("set operations")
{ {
/*
SECTION("std::merge") SECTION("std::merge")
{ {
{ {
...@@ -268,7 +267,6 @@ TEST_CASE("algorithms") ...@@ -268,7 +267,6 @@ TEST_CASE("algorithms")
CHECK(j3 == json({1, 2, 2, 3, 4, 5, 6, 7, 8})); CHECK(j3 == json({1, 2, 2, 3, 4, 5, 6, 7, 8}));
} }
} }
*/
SECTION("std::set_difference") SECTION("std::set_difference")
{ {
...@@ -290,7 +288,6 @@ TEST_CASE("algorithms") ...@@ -290,7 +288,6 @@ TEST_CASE("algorithms")
CHECK(j3 == json({1, 2, 3, 5, 7})); CHECK(j3 == json({1, 2, 3, 5, 7}));
} }
/*
SECTION("std::set_union") SECTION("std::set_union")
{ {
json j1 = {2, 4, 6, 8}; json j1 = {2, 4, 6, 8};
...@@ -310,7 +307,6 @@ TEST_CASE("algorithms") ...@@ -310,7 +307,6 @@ TEST_CASE("algorithms")
std::set_symmetric_difference(j1.begin(), j1.end(), j2.begin(), j2.end(), std::back_inserter(j3)); std::set_symmetric_difference(j1.begin(), j1.end(), j2.begin(), j2.end(), std::back_inserter(j3));
CHECK(j3 == json({1, 3, 4, 5, 6, 7, 8})); CHECK(j3 == json({1, 3, 4, 5, 6, 7, 8}));
} }
*/
} }
SECTION("heap operations") SECTION("heap operations")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment