EightBit/M6502/HarteTest_6502/opcode_test_suite_t.h
Adrian Conlon 6a59bfbcd8 First stab at using the Harte randomised processor tests. Some failures detected in the M6502 run.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-10-10 21:26:30 +01:00

22 lines
468 B
C++

#pragma once
#include <string>
#include <boost/json.hpp>
class opcode_test_suite_t final {
private:
static std::string read(std::string path);
std::string m_path;
boost::json::value m_raw;
public:
opcode_test_suite_t(std::string path);
constexpr const auto& path() const noexcept { return m_path; }
constexpr const auto& raw() const noexcept { return m_raw; }
const boost::json::array& get_array() const noexcept;
void load();
};