clean up of test
This commit is contained in:
parent
bd16ec9fe7
commit
c3340b2e08
@ -19,8 +19,9 @@ describe('basic', () => {
|
|||||||
const inst = lib.parser();
|
const inst = lib.parser();
|
||||||
expect(inst.write(Buffer.from(' foo bar ???'))).to.eq(true);
|
expect(inst.write(Buffer.from(' foo bar ???'))).to.eq(true);
|
||||||
expect(inst.info).to.deep.eq({
|
expect(inst.info).to.deep.eq({
|
||||||
path: [],
|
stack: [{}],
|
||||||
status: 'declaration'
|
status: 'declaration',
|
||||||
|
wires: {}
|
||||||
});
|
});
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
@ -31,8 +32,9 @@ describe('basic', () => {
|
|||||||
' \n $comment some text $end $comment more text $end ???'
|
' \n $comment some text $end $comment more text $end ???'
|
||||||
))).to.eq(true);
|
))).to.eq(true);
|
||||||
expect(inst.info).to.deep.eq({
|
expect(inst.info).to.deep.eq({
|
||||||
path: [],
|
stack: [{}],
|
||||||
status: 'declaration'
|
status: 'declaration',
|
||||||
|
wires: {}
|
||||||
});
|
});
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
@ -51,7 +53,7 @@ $timescale 1ns $end
|
|||||||
$var wire 64 {u counter [63:0] $end
|
$var wire 64 {u counter [63:0] $end
|
||||||
$upscope $end
|
$upscope $end
|
||||||
$scope module fruit $end
|
$scope module fruit $end
|
||||||
$var wire 4 {u point [3:0] $end
|
$var wire 4 u) point [3:0] $end
|
||||||
$upscope $end
|
$upscope $end
|
||||||
$upscope $end
|
$upscope $end
|
||||||
|
|
||||||
@ -78,10 +80,43 @@ b0000000000001111 {u
|
|||||||
)).to.eq(true);
|
)).to.eq(true);
|
||||||
|
|
||||||
expect(inst.info).to.deep.eq({
|
expect(inst.info).to.deep.eq({
|
||||||
path: [],
|
status: 'simulation',
|
||||||
status: 'simulation'
|
varId: 'u)',
|
||||||
|
wires: {
|
||||||
|
top: {
|
||||||
|
clock: '"}G',
|
||||||
|
fruit: {
|
||||||
|
point: 'u)'
|
||||||
|
},
|
||||||
|
leaf: {
|
||||||
|
counter: '{u'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
stack: [{
|
||||||
|
top: {
|
||||||
|
clock: '"}G',
|
||||||
|
fruit: {
|
||||||
|
point: 'u)'
|
||||||
|
},
|
||||||
|
leaf: {
|
||||||
|
counter: '{u'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
clock: '"}G',
|
||||||
|
fruit: {
|
||||||
|
point: 'u)'
|
||||||
|
},
|
||||||
|
leaf: {
|
||||||
|
counter: '{u'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
point: 'u)'
|
||||||
|
}]
|
||||||
});
|
});
|
||||||
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user