mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-07 19:26:43 +01:00
First test added
This commit is contained in:
14
test/sha256.js
Normal file
14
test/sha256.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const chai = require("chai");
|
||||
const path = require("path");
|
||||
|
||||
const compiler = require("../index.js");
|
||||
|
||||
const assert = chai.assert;
|
||||
|
||||
describe("SHA256 test", () => {
|
||||
it("Should create a constant circuit", async () => {
|
||||
|
||||
const cir = await compiler(path.join(__dirname, "circuits", "constants_test.jaz"));
|
||||
assert.equal(cir.nVars, 2);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user