| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -3,7 +3,13 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#include "doctest.h"
 | 
					 | 
					 | 
					 | 
					#include "doctest.h"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#include "histogram_internal.h"
 | 
					 | 
					 | 
					 | 
					#include "histogram_internal.h"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					TEST_CASE("distinct positive numbers") {
 | 
					 | 
					 | 
					 | 
					TEST_CASE("ďóńňîé âĺęňîđ") {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    double min = 0;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    double max = 0;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    CHECK(!(find_minmax({}, min, max)));
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					TEST_CASE("ďîçčňčâíűĺ ÷čńëŕ") {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    double min = 0;
 | 
					 | 
					 | 
					 | 
					    double min = 0;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    double max = 0;
 | 
					 | 
					 | 
					 | 
					    double max = 0;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    find_minmax({1, 2}, min, max);
 | 
					 | 
					 | 
					 | 
					    find_minmax({1, 2}, min, max);
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -11,7 +17,7 @@ TEST_CASE("distinct positive numbers") {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    CHECK(max == 2);
 | 
					 | 
					 | 
					 | 
					    CHECK(max == 2);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					TEST_CASE("all negative numbers"){
 | 
					 | 
					 | 
					 | 
					TEST_CASE("âńĺ íĺăŕňčâíűĺ"){
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    double min = 0;
 | 
					 | 
					 | 
					 | 
					    double min = 0;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    double max = 0;
 | 
					 | 
					 | 
					 | 
					    double max = 0;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    find_minmax({-1, -2}, min, max);
 | 
					 | 
					 | 
					 | 
					    find_minmax({-1, -2}, min, max);
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -19,7 +25,7 @@ TEST_CASE("all negative numbers"){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    CHECK(max == -1);
 | 
					 | 
					 | 
					 | 
					    CHECK(max == -1);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					TEST_CASE("vector of the same elements"){
 | 
					 | 
					 | 
					 | 
					TEST_CASE("îäčíŕęîâűĺ ýëĺěĺíňű"){
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    double min = 0;
 | 
					 | 
					 | 
					 | 
					    double min = 0;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    double max = 0;
 | 
					 | 
					 | 
					 | 
					    double max = 0;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    find_minmax({3,3,3}, min, max);
 | 
					 | 
					 | 
					 | 
					    find_minmax({3,3,3}, min, max);
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -27,3 +33,12 @@ TEST_CASE("vector of the same elements"){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    CHECK(max == 3);
 | 
					 | 
					 | 
					 | 
					    CHECK(max == 3);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					TEST_CASE("îäčí ýëĺěĺíň"){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    double min = 0;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    double max = 0;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    find_minmax({3}, min, max);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    CHECK(min == 3);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    CHECK(max == 3);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					 | 
					
 
 |