You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
323 B

  1. package circuitcompiler
  2. import (
  3. //"fmt"
  4. ////"math/big"
  5. //"strings"
  6. "testing"
  7. "github.com/stretchr/testify/assert"
  8. )
  9. func TestXor(t *testing.T) {
  10. assert.Equal(t, false, Xor(true, true))
  11. assert.Equal(t, true, Xor(true, false))
  12. assert.Equal(t, true, Xor(false, true))
  13. assert.Equal(t, false, Xor(false, false))
  14. }