EightBit/Z80/fusetest_Z80/FuseExpectedTestResults.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
437 B
C++

#include "stdafx.h"
#include "FuseExpectedTestResults.h"
void Fuse::ExpectedTestResults::read(std::ifstream& file) {
bool finished = false;
while (!file.eof()) {
ExpectedTestResult result;
result.read(file);
finished = result.finish;
if (!finished)
results[result.description] = result;
}
}
void Fuse::ExpectedTestResults::read(std::string path) {
std::ifstream file;
file >> std::hex;
file.open(path);
read(file);
}