(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func TestNOTGate(t *testing.T) { |
| 62 | combinations := [][]bool{ |
| 63 | []bool{false, true}, |
| 64 | []bool{true, false}, |
| 65 | } |
| 66 | |
| 67 | for _, combination := range combinations { |
| 68 | gate1 := NewNOTGate() |
| 69 | gate1.Update(combination[0]) |
| 70 | |
| 71 | if gate1.output.Get() != combination[1] { |
| 72 | t.Fail() |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func TestXORGate(t *testing.T) { |
| 78 | combinations := [][]bool{ |
nothing calls this directly
no test coverage detected