rcircuit/spec/or_spec.rb
2018-07-10 08:52:34 -05:00

13 lines
205 B
Ruby

describe OrGate do
it "should OR together all inputs" do
table=[
[0,0,0],
[0,1,1],
[1,0,1],
[1,1,1],
]
ok=OrGate.test_table(table)
expect(ok).to eq true
end
end