Update TestContext to simply provide a generic test run and the input path methods

This commit is contained in:
2024-12-23 18:26:03 +01:00
parent c85cffb992
commit 896d41c561
3 changed files with 28 additions and 39 deletions

View File

@@ -1,5 +1,5 @@
// Solutions to the Advent Of Code 2024.
// Copyright (C) 2024 Stefan Müller
// Copyright (C) 2024 Stefan Müller
//
// This program is free software: you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
@@ -15,6 +15,7 @@
#pragma once
#include <memory>
#include <string>
#include <vector>
@@ -23,8 +24,8 @@
class TestContext
{
public:
TestContext(std::vector<std::string> inputPaths);
void run(const std::unique_ptr<Solver>&& solver, const long long int expected1,
const long long int expected2, const std::vector<std::string>& inputPaths);
std::vector<std::string> getInputPaths() const;
private:
std::vector<std::string> inputPaths_;
std::vector<std::string> getExampleInputPaths() const;
};