Make test_parser2 segments creage unique file names with respect to each other

This commit is contained in:
ado 2023-08-03 21:53:40 +02:00
parent 7656ba0a55
commit 19538597e5
5 changed files with 9 additions and 1 deletions

View File

@ -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;

View File

@ -1,3 +1,4 @@
#define SEGMENT_NAME "segment1"
#include "test_parser2.hpp"
TEST_CASE("parser test various cases version 2 segment 1") {

View File

@ -1,3 +1,4 @@
#define SEGMENT_NAME "segment2"
#include "test_parser2.hpp"
TEST_CASE("parser test various cases version 2 segment 2") {

View File

@ -1,3 +1,4 @@
#define SEGMENT_NAME "segment3"
#include "test_parser2.hpp"
TEST_CASE("parser test various cases version 2 segment 3") {

View File

@ -1,3 +1,4 @@
#define SEGMENT_NAME "segment4"
#include "test_parser2.hpp"
TEST_CASE("parser test various cases version 2 segment 4") {