mirror of
				https://github.com/red0124/ssp.git
				synced 2025-10-30 12:56:45 +01:00 
			
		
		
		
	Make test_parser2 segments creage unique file names with respect to each other
This commit is contained in:
		
							parent
							
								
									7656ba0a55
								
							
						
					
					
						commit
						19538597e5
					
				| @ -10,6 +10,10 @@ | ||||
| #include <unordered_map> | ||||
| #include <unordered_set> | ||||
| 
 | ||||
| #ifndef SEGMENT_NAME | ||||
| #error "SEGMENT_NAME must be defined" | ||||
| #endif | ||||
| 
 | ||||
| // parser tests v2
 | ||||
| 
 | ||||
| namespace { | ||||
| @ -304,7 +308,7 @@ void test_data_combinations(const std::vector<column>& input_data, | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     unique_file_name f{"test_parser2"}; | ||||
|     unique_file_name f{"test_parser2" + std::string{SEGMENT_NAME}}; | ||||
|     std::vector<std::vector<field>> expected_data; | ||||
|     std::vector<std::string> header; | ||||
|     std::vector<field> field_header; | ||||
|  | ||||
| @ -1,3 +1,4 @@ | ||||
| #define SEGMENT_NAME "segment1" | ||||
| #include "test_parser2.hpp" | ||||
| 
 | ||||
| TEST_CASE("parser test various cases version 2 segment 1") { | ||||
|  | ||||
| @ -1,3 +1,4 @@ | ||||
| #define SEGMENT_NAME "segment2" | ||||
| #include "test_parser2.hpp" | ||||
| 
 | ||||
| TEST_CASE("parser test various cases version 2 segment 2") { | ||||
|  | ||||
| @ -1,3 +1,4 @@ | ||||
| #define SEGMENT_NAME "segment3" | ||||
| #include "test_parser2.hpp" | ||||
| 
 | ||||
| TEST_CASE("parser test various cases version 2 segment 3") { | ||||
|  | ||||
| @ -1,3 +1,4 @@ | ||||
| #define SEGMENT_NAME "segment4" | ||||
| #include "test_parser2.hpp" | ||||
| 
 | ||||
| TEST_CASE("parser test various cases version 2 segment 4") { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user