mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-18 11:06:15 +00:00
21 lines
437 B
C++
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);
|
||
|
}
|