Change long long int to fixed width integer type int64_t
This commit is contained in:
@@ -27,17 +27,17 @@
|
||||
class TestContext
|
||||
{
|
||||
public:
|
||||
void run(std::unique_ptr<Solver<long long, long long>>&& solver, const long long& expected1,
|
||||
const long long& expected2, const std::vector<std::string>& inputPaths);
|
||||
void run(std::unique_ptr<Solver<long long, std::string>>&& solver, const long long& expected1,
|
||||
void run(std::unique_ptr<Solver<int64_t, int64_t>>&& solver, const int64_t expected1, const int64_t expected2,
|
||||
const std::vector<std::string>& inputPaths);
|
||||
void run(std::unique_ptr<Solver<int64_t, std::string>>&& solver, const int64_t expected1,
|
||||
const std::string& expected2, const std::vector<std::string>& inputPaths);
|
||||
void run(std::unique_ptr<Solver<std::string, long long>>&& solver, const std::string& expected1,
|
||||
const long long& expected2, const std::vector<std::string>& inputPaths);
|
||||
void runPart1(std::unique_ptr<Solver<long long, long long>>&& solver, const long long& expected,
|
||||
void run(std::unique_ptr<Solver<std::string, int64_t>>&& solver, const std::string& expected1,
|
||||
const int64_t expected2, const std::vector<std::string>& inputPaths);
|
||||
void runPart1(std::unique_ptr<Solver<int64_t, int64_t>>&& solver, const int64_t expected,
|
||||
const std::vector<std::string>& inputPaths);
|
||||
void runPart1(std::unique_ptr<Solver<std::string, long long>>&& solver, const std::string& expected,
|
||||
void runPart1(std::unique_ptr<Solver<std::string, int64_t>>&& solver, const std::string& expected,
|
||||
const std::vector<std::string>& inputPaths);
|
||||
void runPart2(std::unique_ptr<Solver<long long, long long>>&& solver, const long long& expected,
|
||||
void runPart2(std::unique_ptr<Solver<int64_t, int64_t>>&& solver, const int64_t expected,
|
||||
const std::vector<std::string>& inputPaths);
|
||||
std::vector<std::string> getInputPaths() const;
|
||||
std::vector<std::string> getExampleInputPaths() const;
|
||||
|
||||
@@ -15,37 +15,37 @@
|
||||
|
||||
#include <aocTests/TestContext.hpp>
|
||||
|
||||
void TestContext::run(std::unique_ptr<Solver<long long, long long>>&& solver, const long long& expected1,
|
||||
const long long& expected2, const std::vector<std::string>& inputPaths)
|
||||
void TestContext::run(std::unique_ptr<Solver<int64_t, int64_t>>&& solver, const int64_t expected1,
|
||||
const int64_t expected2, const std::vector<std::string>& inputPaths)
|
||||
{
|
||||
runGeneric(std::move(solver), expected1, expected2, inputPaths);
|
||||
}
|
||||
|
||||
void TestContext::run(std::unique_ptr<Solver<long long, std::string>>&& solver, const long long& expected1,
|
||||
void TestContext::run(std::unique_ptr<Solver<int64_t, std::string>>&& solver, const int64_t expected1,
|
||||
const std::string& expected2, const std::vector<std::string>& inputPaths)
|
||||
{
|
||||
runGeneric(std::move(solver), expected1, expected2, inputPaths);
|
||||
}
|
||||
|
||||
void TestContext::run(std::unique_ptr<Solver<std::string, long long>>&& solver, const std::string& expected1,
|
||||
const long long& expected2, const std::vector<std::string>& inputPaths)
|
||||
void TestContext::run(std::unique_ptr<Solver<std::string, int64_t>>&& solver, const std::string& expected1,
|
||||
const int64_t expected2, const std::vector<std::string>& inputPaths)
|
||||
{
|
||||
runGeneric(std::move(solver), expected1, expected2, inputPaths);
|
||||
}
|
||||
|
||||
void TestContext::runPart1(std::unique_ptr<Solver<long long, long long>>&& solver, const long long& expected,
|
||||
void TestContext::runPart1(std::unique_ptr<Solver<int64_t, int64_t>>&& solver, const int64_t expected,
|
||||
const std::vector<std::string>& inputPaths)
|
||||
{
|
||||
runPart1Generic(std::move(solver), expected, inputPaths);
|
||||
}
|
||||
|
||||
void TestContext::runPart1(std::unique_ptr<Solver<std::string, long long>>&& solver, const std::string& expected,
|
||||
void TestContext::runPart1(std::unique_ptr<Solver<std::string, int64_t>>&& solver, const std::string& expected,
|
||||
const std::vector<std::string>& inputPaths)
|
||||
{
|
||||
runPart1Generic(std::move(solver), expected, inputPaths);
|
||||
}
|
||||
|
||||
void TestContext::runPart2(std::unique_ptr<Solver<long long, long long>>&& solver, const long long& expected,
|
||||
void TestContext::runPart2(std::unique_ptr<Solver<int64_t, int64_t>>&& solver, const int64_t expected,
|
||||
const std::vector<std::string>& inputPaths)
|
||||
{
|
||||
runPart2Generic(std::move(solver), expected, inputPaths);
|
||||
|
||||
Reference in New Issue
Block a user