added test case
This commit is contained in:
		
							parent
							
								
									186aefb8f2
								
							
						
					
					
						commit
						092bf39f53
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue