rcircuit/spec/and_spec.rb

13 lines
208 B
Ruby
Raw Permalink Normal View History

2018-07-10 08:03:40 -05:00
describe AndGate do
it "should AND together all inputs" do
table=[
[0,0,0],
[0,1,0],
[1,0,0],
[1,1,1],
]
ok=AndGate.test_table(table)
expect(ok).to eq true
end
end