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.

14 lines
362 B

  1. const chai = require("chai");
  2. const path = require("path");
  3. const compiler = require("../index.js");
  4. const assert = chai.assert;
  5. describe("SHA256 test", () => {
  6. it("Should create a constant circuit", async () => {
  7. const cir = await compiler(path.join(__dirname, "circuits", "constants_test.jaz"));
  8. assert.equal(cir.nVars, 2);
  9. });
  10. });