From 092bf39f534b163b78c2d144bf9573d4b7a7bcf3 Mon Sep 17 00:00:00 2001
From: Niels <niels.lohmann@gmail.com>
Date: Sun, 12 Jul 2015 20:40:46 +0200
Subject: [PATCH] added test case

---
 test/unit.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/unit.cpp b/test/unit.cpp
index 3e721627..ebeecb36 100644
--- a/test/unit.cpp
+++ b/test/unit.cpp
@@ -6735,7 +6735,11 @@ TEST_CASE("modifiers")
 
             SECTION("invalid iterators")
             {
+                json j_other_array2 = {"first", "second"};
+
                 CHECK_THROWS_AS(j_array.insert(j_array.end(), j_array.begin(), j_array.end()), std::domain_error);
+                CHECK_THROWS_AS(j_array.insert(j_array.end(), j_other_array.begin(), j_other_array2.end()),
+                                std::domain_error);
             }
         }