-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(circom): Add tests to IsEqaulArrays
- Loading branch information
1 parent
dfb10fe
commit 43b2d3c
Showing
10 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
beacon-light-client/circom/test/is_equal_arrays/circuit.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pragma circom 2.1.5; | ||
|
||
include "../../circuits/utils/arrays.circom"; | ||
|
||
component main = IsEqualArrays(3); // N must be equal to length in both arrays in input["in"] |
1 change: 1 addition & 0 deletions
1
beacon-light-client/circom/test/is_equal_arrays/data/case01/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"in": [["1","2","2"],["1","2","2"]]} |
1 change: 1 addition & 0 deletions
1
beacon-light-client/circom/test/is_equal_arrays/data/case01/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"out": "1"} |
1 change: 1 addition & 0 deletions
1
beacon-light-client/circom/test/is_equal_arrays/data/case02/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"in": [["100","2","2"],["1","2","101"]]} |
1 change: 1 addition & 0 deletions
1
beacon-light-client/circom/test/is_equal_arrays/data/case02/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"out": "0"} |
1 change: 1 addition & 0 deletions
1
beacon-light-client/circom/test/is_equal_arrays/data/case03/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"in": [["10","8","7"],["7","8","10"]]} |
1 change: 1 addition & 0 deletions
1
beacon-light-client/circom/test/is_equal_arrays/data/case03/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"out": "0"} |
10 changes: 1 addition & 9 deletions
10
beacon-light-client/circom/test/less_than_eq_bits_check/circuit.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
pragma circom 2.1.5; | ||
|
||
include "../../circuits/utils/arrays.circom"; | ||
include "../../circuits/utils/numerical.circom"; | ||
|
||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
component main = LessThanOrEqualBitsCheck(32); | ||
======= | ||
component main = Selector(8) // N must be equal to input["in"] length | ||
>>>>>>> 7f6ce53 (feat(circom) Add tests for Selector circuit.) | ||
======= | ||
component main = LessThanOrEqualBitsCheck(32) | ||
>>>>>>> 5452718 (fix(circom): Fix wrong main call for selector and less_than_eq_bits_check.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters