Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Chengxuan Xing <[email protected]>
  • Loading branch information
Chengxuan committed Aug 3, 2024
1 parent b47f17e commit 138a67b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion zkp/js/test/anon.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('main circuit tests for Zeto fungible tokens with anonymity without enc
err = e;
}
// console.log(err);
expect(err).to.match(/Error in template CheckHashesAndSum_89 line: 95/);
expect(err).to.match(/Error in template CheckHashesAndSum_89 line: 110/);
});

it('should generate a valid proof that can be verified successfully', async () => {
Expand Down
2 changes: 1 addition & 1 deletion zkp/js/test/anon_enc.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ describe('main circuit tests for Zeto fungible tokens with anonymity with encryp
err = e;
}
// console.log(err);
expect(err).to.match(/Error in template CheckHashesAndSum_89 line: 95/);
expect(err).to.match(/Error in template CheckHashesAndSum_89 line: 110/);
});

it('should generate a valid proof that can be verified successfully', async () => {
Expand Down
4 changes: 2 additions & 2 deletions zkp/js/test/anon_enc_nullifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ describe('main circuit tests for Zeto fungible tokens with encryption and anonym
err = e;
}
// console.log(err);
expect(err).to.match(/Error in template CheckNullifierHashesAndSum_246 line: 156/);
expect(err).to.match(/Error in template Zeto_254 line: 46/);
expect(err).to.match(/Error in template CheckNullifierHashesAndSum_246 line: 171/);
expect(err).to.match(/Error in template Zeto_254 line: 61/);
});

it('should generate a valid proof that can be verified successfully', async () => {
Expand Down
2 changes: 1 addition & 1 deletion zkp/js/test/check_nullifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('check-nullifiers circuit tests', () => {
err = e;
}
// console.log(err);
expect(err).to.match(/Error in template CheckNullifiers_155 line: 63/);
expect(err).to.match(/Error in template CheckNullifiers_155 line: 78/);
});

it('should generate a valid proof using groth16 that can be verified successfully', async () => {
Expand Down

0 comments on commit 138a67b

Please sign in to comment.