UnitTests: Fail DSPAssemblyTest if the assembled code doesn't match the expected result
This reveals that both HermesText and HermesBinary fail. HermesBinary would have failed on master, too, if this had been implemented.
This commit is contained in:
parent
2d774010c3
commit
6a2ec825a2
|
@ -46,8 +46,8 @@ static bool RoundTrip(const std::vector<u16>& code1)
|
||||||
}
|
}
|
||||||
if (!DSP::Compare(code1, code2))
|
if (!DSP::Compare(code1, code2))
|
||||||
{
|
{
|
||||||
DSP::Disassemble(code1, true, text);
|
fmt::print("RoundTrip: Assembled code does not match input code\n");
|
||||||
fmt::print("{}", text);
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -81,6 +81,12 @@ static bool SuperTrip(const char* asm_code)
|
||||||
fmt::print("SuperTrip: Second assembly failed\n");
|
fmt::print("SuperTrip: Second assembly failed\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!DSP::Compare(code1, code2))
|
||||||
|
{
|
||||||
|
fmt::print("SuperTrip: Assembled code does not match between passes\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue