|
E.g, if my chip has an IN field named "a", but my .cmp file has a column named "in", then the problem reported is "Comparison failure at line 1". It seems like eval should warn about missing or extra items in the .cmp file rather than silently using a default value, no?
Repro:
---------------.hdl
CHIP Name {
IN a;
OUT out;
PARTS:
Not(a=a, out=boof);
Not(a=boof, out=out);
}
-------------- .tst
load Name.hdl,
output-file Name.out,
compare-to Name.cmp,
output-list a%B3.1.3 out%B3.1.3;
set a 0,
eval,
output;
set a 1,
eval,
output;
--------------- .cmp
| in | out |
| 0 | 0 |
| 1 | 1 |
|