You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
582 B

  1. const path = require("path");
  2. const tester = require("circom").tester;
  3. const chai = require("chai");
  4. const assert = chai.assert;
  5. export {};
  6. describe("equation test", function () {
  7. this.timeout(200000);
  8. it("Test equation", async () => {
  9. const circuit = await tester(
  10. path.join(__dirname, "../circuits", "equation.circom"),
  11. {reduceConstraints: false}
  12. );
  13. const witness = await circuit.calculateWitness({
  14. "x": 4,
  15. "y": 2
  16. });
  17. await circuit.checkConstraints(witness);
  18. });
  19. });