Skip to content

Commit

Permalink
rfk structures
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Sep 12, 2023
1 parent ee160f4 commit 836fe94
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/arrays.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("arrays", () => {

before(async () => {
circuit = await circomkit.WitnessTester(`distinct_${N}`, {
file: "utils/arrays",
file: "circuits/utils/arrays",
template: "AssertDistinct",
dir: "test/arrays",
params: [N],
Expand Down
2 changes: 1 addition & 1 deletion tests/comparators.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("comparators", () => {

before(async () => {
circuit = await circomkit.WitnessTester(`inRange_${MIN}_${MAX}`, {
file: "utils/comparators",
file: "circuits/utils/comparators",
template: "AssertInRange",
dir: "test/comparators",
params: [MIN, MAX],
Expand Down
2 changes: 1 addition & 1 deletion tests/compconstant.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("compconstant", () => {

before(async () => {
circuit = await circomkit.WitnessTester(`compconstant`, {
file: "utils/compconstant",
file: "circuits/utils/compconstant",
template: "CompConstant",
params: [CONSTANT],
});
Expand Down
3 changes: 2 additions & 1 deletion tests/fibonacci.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ describe("fibonacci", () => {

before(async () => {
circuit = await circomkit.WitnessTester(`fibonacci_${N}`, {
file: "examples/fibonacci",
file: "circuits/basics/fibonacci",
template: "Fibonacci",
dir: 'test/basics',
params: [N],
});
console.log("#constraints:", await circuit.getConstraintCount());
Expand Down
2 changes: 1 addition & 1 deletion tests/magic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MAGIC_SIZES.map((N) =>

before(async () => {
circuit = await circomkit.WitnessTester(`magic_${N}x${N}`, {
file: "examples/magic",
file: "circuits/basics/magic",
template: "MagicSquare",
params: [N],
});
Expand Down
5 changes: 3 additions & 2 deletions tests/multiplier.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ describe("multiplier", () => {

before(async () => {
circuit = await circomkit.WitnessTester(`multiplier_${N}`, {
file: "examples/multiplier",
file: "circuits/basics/multiplier",
template: "Multiplier",
dir: "test/multiplier",
params: [N],
});
});
Expand All @@ -28,7 +29,7 @@ describe("multiplier", () => {

before(async () => {
circuit = await circomkit.WitnessTester("mulgate", {
file: "examples/multiplier",
file: "circuits/basics/multiplier",
template: "Mul",
dir: "test/multiplier",
});
Expand Down
2 changes: 1 addition & 1 deletion tests/sudoku.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BOARD_SIZES.map((N) =>

before(async () => {
circuit = await circomkit.WitnessTester(`sudoku_${N}x${N}`, {
file: "examples/sudoku",
file: "circuits/basics/sudoku",
template: "Sudoku",
pubs: ["puzzle"],
params: [Math.sqrt(N)],
Expand Down

0 comments on commit 836fe94

Please sign in to comment.