Skip to content

Commit

Permalink
Tested non array value
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Nov 21, 2024
1 parent 5eebe8c commit 7e74ffe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/circom-template-inputs-visitor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ describe("Circom Template Inputs Visitor", () => {
expect(visitor.templateInputs.in1.dimension).to.deep.equal([]);

expect(visitor.templateInputs.in2.type).to.equal("input");
expect(visitor.templateInputs.in2.dimension).to.deep.equal([15, 10]);
expect(visitor.templateInputs.in2.dimension).to.deep.equal([15, 30]);

expect(visitor.templateInputs.out.type).to.equal("output");
expect(visitor.templateInputs.out.dimension).to.deep.equal([]);
Expand Down
6 changes: 3 additions & 3 deletions test/data/AnotherMainComponent.circom
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pragma circom 2.1.6;

template SomeCircuit(p1){
template SomeCircuit(p1, p2){
signal input in1;
signal input in2[p1[1] * p1[0]][p1[3] * p1[2]];
signal input in2[p1[1] * p1[0]][p1[3] * p1[2] * p2];

signal output out <== in1 * in2[0][0];
}

component main {public [in1]} = SomeCircuit([5, 3, 2, 5]);
component main {public [in1]} = SomeCircuit([5, 3, 2, 5], 3);

0 comments on commit 7e74ffe

Please sign in to comment.