Skip to content

Commit

Permalink
Add test for test vector builder
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Sep 14, 2018
1 parent 454f871 commit 29650b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_vector_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from bit_vector import BitVector
import fault
import common
from fault.actions import Poke, Expect, Eval, Step
from fault.actions import Poke, Expect, Eval, Step, Peek
from fault.array import Array
from fault.vector_builder import VectorBuilder

Expand All @@ -22,6 +22,7 @@ def test_tester_clock():
circ = common.TestBasicClkCircuit
builder = VectorBuilder(circ)
builder.process(Poke(circ.I, BitVector(0, 1)))
builder.process(Peek(circ.O))
builder.process(Expect(circ.O, BitVector(0, 1)))
assert builder.vectors == [
[BitVector(0, 1), BitVector(0, 1), fault.AnyValue]
Expand Down

0 comments on commit 29650b7

Please sign in to comment.