Skip to content

Commit

Permalink
tests revised
Browse files Browse the repository at this point in the history
  • Loading branch information
alrubio committed Oct 7, 2021
1 parent a0cec75 commit 6005a9c
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/aliascheck.js
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ describe("Aliascheck test", function () {
let cir;
before( async() => {

cir = await wasm_wasm_tester(path.join(__dirname, "circuits", "aliascheck_test.circom"));
cir = await wasm_tester(path.join(__dirname, "circuits", "aliascheck_test.circom"));
});

it("Satisfy the aliastest 0", async () => {
2 changes: 1 addition & 1 deletion test/babyjub.js
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ describe("Baby Jub test", function () {
await circuitTest.calculateWitness({x: 1, y: 0}, true);
assert(false, "Should be a valid point");
} catch(err) {
assert(assert(err.message.includes("Assert Failed")));
assert(err.message.includes("Assert Failed"));
}
});

1 change: 0 additions & 1 deletion test/binsum.js
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@ describe("Binary sum test", function () {
it("Should create a constant circuit", async () => {
const circuit = await wasm_tester(path.join(__dirname, "circuits", "constants_test.circom"));
await circuit.loadConstraints();

assert.equal(circuit.nVars, 2);
assert.equal(circuit.constraints.length, 1);

2 changes: 1 addition & 1 deletion test/circuits/constants_test.circom
Original file line number Diff line number Diff line change
@@ -17,4 +17,4 @@ template A() {
lc === in;
}

component main = A();
component main {public [in]} = A();

0 comments on commit 6005a9c

Please sign in to comment.