From 82fbbeeac5c4a75fa4af95f10c97c56ef95ddbed Mon Sep 17 00:00:00 2001
From: Guillaume Racicot <gufideg@gmail.com>
Date: Sat, 6 Jun 2020 12:28:52 -0400
Subject: [PATCH] Adapted unit tests to use ADL calls for swap like the new
 swappable concept

---
 test/src/unit-concepts.cpp  | 4 ++--
 test/src/unit-modifiers.cpp | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/test/src/unit-concepts.cpp b/test/src/unit-concepts.cpp
index 899d1eaf..1f3afc0c 100644
--- a/test/src/unit-concepts.cpp
+++ b/test/src/unit-concepts.cpp
@@ -154,7 +154,7 @@ TEST_CASE("concepts")
                 json j {1, 2, 3};
                 json::iterator it1 = j.begin();
                 json::iterator it2 = j.end();
-                std::swap(it1, it2);
+                swap(it1, it2);
                 CHECK(it1 == j.end());
                 CHECK(it2 == j.begin());
             }
@@ -162,7 +162,7 @@ TEST_CASE("concepts")
                 json j {1, 2, 3};
                 json::const_iterator it1 = j.cbegin();
                 json::const_iterator it2 = j.cend();
-                std::swap(it1, it2);
+                swap(it1, it2);
                 CHECK(it1 == j.end());
                 CHECK(it2 == j.begin());
             }
diff --git a/test/src/unit-modifiers.cpp b/test/src/unit-modifiers.cpp
index 9214c608..4b8d0762 100644
--- a/test/src/unit-modifiers.cpp
+++ b/test/src/unit-modifiers.cpp
@@ -878,7 +878,8 @@ TEST_CASE("modifiers")
                 json j("hello world");
                 json k(42.23);
 
-                std::swap(j, k);
+                using std::swap;
+                swap(j, k);
 
                 CHECK(j == json(42.23));
                 CHECK(k == json("hello world"));