Skip to content

Commit

Permalink
remove unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJepsen committed Oct 24, 2024
1 parent 9e3e7e0 commit 41d3a52
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions circuits/test/common/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,47 +73,6 @@ describe("IncrementWord", () => {
});


describe("ParseBytesBE", () => {
let circuit: WitnessTester<["in"], ["out"]>;

before(async () => {
circuit = await circomkit.WitnessTester(`ParseBEBytes64`, {
file: "aes-gcm/utils",
template: "ParseBEBytes64",
});
});

it("Should parse bytes in BE order", async () => {
const X = hexToBitArray("0x0000000000000001");
const expected = 1;
const _result = await circuit.compute({ in: X }, ["out"]);
const result = _result.out as number;

assert.equal(result, expected, "parse incorrect");
});
});


describe("ParseBytesLE", () => {
let circuit: WitnessTester<["in"], ["out"]>;

before(async () => {
circuit = await circomkit.WitnessTester(`ParseLEBytes64`, {
file: "aes-gcm/utils",
template: "ParseLEBytes64",
});
});

it("Should parse bytes in LE order", async () => {
const X = hexToBitArray("0x0100000000000000");
const expected = 1;
const _result = await circuit.compute({ in: X }, ["out"]);
const result = _result.out as number;

assert.equal(result, expected, "parse incorrect");
});
});

describe("ArrayMux", () => {
let circuit: WitnessTester<["a", "b", "sel"], ["out"]>;

Expand Down

0 comments on commit 41d3a52

Please sign in to comment.