From 5e9835e97f88830ec32056c52f4b23cd85ddcde6 Mon Sep 17 00:00:00 2001 From: Ivan Morozko Date: Tue, 14 Jan 2025 13:57:09 +0300 Subject: [PATCH] Bring back missing tmp_dc.cvs and rename it appropriately --- src/tests/all_csv_configs.cpp | 2 +- src/tests/all_csv_configs.h | 2 +- src/tests/test_dc_structures.cpp | 2 +- test_input_data/TestDC3.csv | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 test_input_data/TestDC3.csv diff --git a/src/tests/all_csv_configs.cpp b/src/tests/all_csv_configs.cpp index efbef99bb1..8c176818ca 100644 --- a/src/tests/all_csv_configs.cpp +++ b/src/tests/all_csv_configs.cpp @@ -131,5 +131,5 @@ CSVConfig const kAnimalsBeverages = CreateCsvConfig("animals_beverages.csv", ',' CSVConfig const kTestDC = CreateCsvConfig("TestDC.csv", ',', true); CSVConfig const kTestDC1 = CreateCsvConfig("TestDC1.csv", ',', true); CSVConfig const kTestDC2 = CreateCsvConfig("TestDC2.csv", ',', true); -CSVConfig const kTmpDC = CreateCsvConfig("tmp_dc.csv", ',', true); +CSVConfig const kTestDC3 = CreateCsvConfig("TestDC3.csv", ',', true); } // namespace tests diff --git a/src/tests/all_csv_configs.h b/src/tests/all_csv_configs.h index d1e3eae41d..1db2a2477f 100644 --- a/src/tests/all_csv_configs.h +++ b/src/tests/all_csv_configs.h @@ -110,5 +110,5 @@ extern CSVConfig const kAnimalsBeverages; extern CSVConfig const kTestDC; extern CSVConfig const kTestDC1; extern CSVConfig const kTestDC2; -extern CSVConfig const kTmpDC; +extern CSVConfig const kTestDC3; } // namespace tests diff --git a/src/tests/test_dc_structures.cpp b/src/tests/test_dc_structures.cpp index ef04161be4..c3aeed9e6b 100644 --- a/src/tests/test_dc_structures.cpp +++ b/src/tests/test_dc_structures.cpp @@ -222,7 +222,7 @@ TEST(TestOperatorString, Compare) { } TEST(Predicate, PredicateCreatesCorrectly) { - CSVParser parser{kTmpDC}; + CSVParser parser{kTestDC3}; std::unique_ptr table = model::ColumnLayoutTypedRelationData::CreateFrom(parser, true); std::vector col_data = std::move(table->GetColumnData()); diff --git a/test_input_data/TestDC3.csv b/test_input_data/TestDC3.csv new file mode 100644 index 0000000000..a3005ce835 --- /dev/null +++ b/test_input_data/TestDC3.csv @@ -0,0 +1,3 @@ +A,B +1,2 +1,10