circuit_test.go 757 Bytes
Newer Older
Anders Jensen Løvig's avatar
Anders Jensen Løvig committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package circuit

import "testing"

func TestBuilderInputs(t *testing.T) {
	// b := NewBuilder()

	// A_in := b.AddInputs(3)
	// if len(A_in) != 3 {
	// 	t.Errorf("Expected length of A_in to be 3 (was %d)", len(A_in))
	// }
	// for i := 0; i < len(A_in); i++ {
	// 	if A_in[i] != i {
	// 		t.Errorf("Expected A_in[%d] == %d (was %d)", i, i, A_in[i])
	// 	}
	// 	if b.wires[A_in[i]] != i {
	// 		t.Errorf("Expected b.wires[%d] == %d (was %d)", A_in[i], i, b.wires[A_in[i]])
	// 	}
	// }

	// B_in := b.AddInputs(1)
	// if len(B_in) != 1 {
	// 	t.Errorf("Expected length of B_in to be 1 (was %d)", len(B_in))
	// }
	// for i := 0; i < len(B_in); i++ {
	// 	if B_in[i] != i+3 {
	// 		t.Errorf("Expected B_in[%d] == %d (was %d)", i, i+3, B_in[i])
	// 	}
	// }
}