broke test in two chunks
This commit is contained in:
parent
7ed1041447
commit
592ae7779a
@ -135,8 +135,10 @@ simulation
|
|||||||
$dumpall: 9, $dumpoff: 10, $dumpon: 11, $dumpvars: 12, $comment: 1
|
$dumpall: 9, $dumpoff: 10, $dumpon: 11, $dumpvars: 12, $comment: 1
|
||||||
}, p.invoke(p.code.store('command'), commandSpan.start(inSimulation)))
|
}, p.invoke(p.code.store('command'), commandSpan.start(inSimulation)))
|
||||||
.select({'#': 13}, p.invoke(p.code.store('command'), commandSpan.start(simulationTime)))
|
.select({'#': 13}, p.invoke(p.code.store('command'), commandSpan.start(simulationTime)))
|
||||||
.select({'0': 14}, p.invoke(p.code.store('command'), commandSpan.start(simulationTime)))
|
.select({
|
||||||
.select({'1': 15}, p.invoke(p.code.store('command'), commandSpan.start(simulationTime)))
|
'0': 14, '1': 15, x: 16, X: 17, Z: 18
|
||||||
|
}, p.invoke(p.code.store('command'), commandSpan.start(simulationTime)))
|
||||||
|
.select({}, p.invoke(p.code.store('command'), commandSpan.start(simulationTime)))
|
||||||
.otherwise(p.error(4, 'Expected simulation command'));
|
.otherwise(p.error(4, 'Expected simulation command'));
|
||||||
|
|
||||||
inSimulation
|
inSimulation
|
||||||
|
@ -43,6 +43,7 @@ $timescale 1ns $end
|
|||||||
$scope module leaf $end
|
$scope module leaf $end
|
||||||
$var wire 64 "}> counter [63:0] $end
|
$var wire 64 "}> counter [63:0] $end
|
||||||
$upscope $end
|
$upscope $end
|
||||||
|
`, null)).to.eq(1); expect(lib.execute(cxt, `
|
||||||
$upscope $end
|
$upscope $end
|
||||||
|
|
||||||
$enddefinitions $end
|
$enddefinitions $end
|
||||||
@ -54,10 +55,10 @@ $enddefinitions $end
|
|||||||
#3
|
#3
|
||||||
0"}G
|
0"}G
|
||||||
|
|
||||||
`, '')).to.eq(2);
|
`, null)).to.eq(1);
|
||||||
expect(lib.getError(cxt)).to.eq(2);
|
expect(lib.getError(cxt)).to.eq(1);
|
||||||
expect(lib.getReason(cxt)).to.eq('Expected simulation command');
|
// expect(lib.getReason(cxt)).to.eq('Expected simulation command');
|
||||||
expect(lib.getCommand(cxt)).to.eq(100);
|
// expect(lib.getCommand(cxt)).to.eq(100);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user