From 91b6e223d91ece4c305448c4cef33d29a0f35827 Mon Sep 17 00:00:00 2001
From: Niels <niels.lohmann@gmail.com>
Date: Thu, 4 Aug 2016 22:04:55 +0200
Subject: [PATCH] adjusted capacity test cases

---
 test/src/unit-capacity.cpp | 40 +++++++++++++++++++-------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/test/src/unit-capacity.cpp b/test/src/unit-capacity.cpp
index 95100da9..f671ae99 100644
--- a/test/src/unit-capacity.cpp
+++ b/test/src/unit-capacity.cpp
@@ -48,8 +48,8 @@ TEST_CASE("capacity")
 
             SECTION("definition of empty")
             {
-                CHECK(j.begin() != j.end());
-                CHECK(j_const.begin() != j_const.end());
+                CHECK(j.empty() == (j.begin() == j.end()));
+                CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
             }
         }
 
@@ -66,8 +66,8 @@ TEST_CASE("capacity")
 
             SECTION("definition of empty")
             {
-                CHECK(j.begin() != j.end());
-                CHECK(j_const.begin() != j_const.end());
+                CHECK(j.empty() == (j.begin() == j.end()));
+                CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
             }
         }
 
@@ -86,8 +86,8 @@ TEST_CASE("capacity")
 
                 SECTION("definition of empty")
                 {
-                    CHECK(j.begin() == j.end());
-                    CHECK(j_const.begin() == j_const.end());
+                    CHECK(j.empty() == (j.begin() == j.end()));
+                    CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
                 }
             }
 
@@ -104,8 +104,8 @@ TEST_CASE("capacity")
 
                 SECTION("definition of empty")
                 {
-                    CHECK(j.begin() != j.end());
-                    CHECK(j_const.begin() != j_const.end());
+                    CHECK(j.empty() == (j.begin() == j.end()));
+                    CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
                 }
             }
         }
@@ -125,8 +125,8 @@ TEST_CASE("capacity")
 
                 SECTION("definition of empty")
                 {
-                    CHECK(j.begin() == j.end());
-                    CHECK(j_const.begin() == j_const.end());
+                    CHECK(j.empty() == (j.begin() == j.end()));
+                    CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
                 }
             }
 
@@ -143,8 +143,8 @@ TEST_CASE("capacity")
 
                 SECTION("definition of empty")
                 {
-                    CHECK(j.begin() != j.end());
-                    CHECK(j_const.begin() != j_const.end());
+                    CHECK(j.empty() == (j.begin() == j.end()));
+                    CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
                 }
             }
         }
@@ -162,8 +162,8 @@ TEST_CASE("capacity")
 
             SECTION("definition of empty")
             {
-                CHECK(j.begin() != j.end());
-                CHECK(j_const.begin() != j_const.end());
+                CHECK(j.empty() == (j.begin() == j.end()));
+                CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
             }
         }
 
@@ -180,8 +180,8 @@ TEST_CASE("capacity")
 
             SECTION("definition of empty")
             {
-                CHECK(j.begin() != j.end());
-                CHECK(j_const.begin() != j_const.end());
+                CHECK(j.empty() == (j.begin() == j.end()));
+                CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
             }
         }
 
@@ -198,8 +198,8 @@ TEST_CASE("capacity")
 
             SECTION("definition of empty")
             {
-                CHECK(j.begin() != j.end());
-                CHECK(j_const.begin() != j_const.end());
+                CHECK(j.empty() == (j.begin() == j.end()));
+                CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
             }
         }
 
@@ -216,8 +216,8 @@ TEST_CASE("capacity")
 
             SECTION("definition of empty")
             {
-                CHECK(j.begin() == j.end());
-                CHECK(j_const.begin() == j_const.end());
+                CHECK(j.empty() == (j.begin() == j.end()));
+                CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
             }
         }
     }