Update TestContext to simply provide a generic test run and the input path methods
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user