EightBit/Z80/fusetest_Z80/FuseTests.cpp
Adrian.Conlon 982bccf0c9 First stab at adding Fuse Test runner.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
2017-06-05 23:24:08 +01:00

21 lines
369 B
C++

#include "stdafx.h"
#include "FuseTests.h"
void Fuse::Tests::read(std::ifstream& file) {
bool finished = false;
while (!file.eof()) {
Test test;
test.read(file);
finished = test.finish;
if (!finished)
tests[test.description] = test;
}
}
void Fuse::Tests::read(std::string path) {
std::ifstream file;
file >> std::hex;
file.open(path);
read(file);
}