Commit 97d3c606 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

YELLOW

refs 862
parent 65bf72cf
......@@ -58,7 +58,7 @@ import org.junit.runners.Parameterized.Parameters;
* @author mou
* @author $Author: hoelzl $
* @version $Rev: 4590 $
* @ConQAT.Rating RED Hash: 540D9C18AF55ED1957FA099C0847F179
* @ConQAT.Rating YELLOW Hash: 4CD4787634A87AA9B71A6901B37282CE
*/
@RunWith(Parameterized.class)
public class CCodeEquivalenceTest {
......@@ -165,8 +165,9 @@ public class CCodeEquivalenceTest {
debugInfo.append(") -- ");
for(TestOutput to : step.getOutputsList()) {
// TODO HACK - the if below is a temporary hack
if(to.getExpectedValue() instanceof DoubleConst) {
// reduced equality assertion: expected and simulated are equal if first three
// characters are equal
String expected = to.getExpectedValue().toString().substring(0, 3);
String simulated = to.getSimulatedValue().toString().substring(0, 3);
if(!expected.equals(simulated)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment