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
|
||||
}, p.invoke(p.code.store('command'), commandSpan.start(inSimulation)))
|
||||
.select({'#': 13}, p.invoke(p.code.store('command'), commandSpan.start(simulationTime)))
|
||||
.select({'0': 14}, p.invoke(p.code.store('command'), commandSpan.start(simulationTime)))
|
||||
.select({'1': 15}, p.invoke(p.code.store('command'), commandSpan.start(simulationTime)))
|
||||
.select({
|
||||
'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'));
|
||||
|
||||
inSimulation
|
||||
|
@ -43,6 +43,7 @@ $timescale 1ns $end
|
||||
$scope module leaf $end
|
||||
$var wire 64 "}> counter [63:0] $end
|
||||
$upscope $end
|
||||
`, null)).to.eq(1); expect(lib.execute(cxt, `
|
||||
$upscope $end
|
||||
|
||||
$enddefinitions $end
|
||||
@ -54,10 +55,10 @@ $enddefinitions $end
|
||||
#3
|
||||
0"}G
|
||||
|
||||
`, '')).to.eq(2);
|
||||
expect(lib.getError(cxt)).to.eq(2);
|
||||
expect(lib.getReason(cxt)).to.eq('Expected simulation command');
|
||||
expect(lib.getCommand(cxt)).to.eq(100);
|
||||
`, null)).to.eq(1);
|
||||
expect(lib.getError(cxt)).to.eq(1);
|
||||
// expect(lib.getReason(cxt)).to.eq('Expected simulation command');
|
||||
// expect(lib.getCommand(cxt)).to.eq(100);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user