Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mocha in CI #51

Closed
wants to merge 1 commit into from
Closed

mocha in CI #51

wants to merge 1 commit into from

Conversation

0xJepsen
Copy link
Contributor

@0xJepsen 0xJepsen commented Aug 19, 2024

Closes #50

@0xJepsen
Copy link
Contributor Author

Edit: in order to do this we need to download and build the circom compiler from source in the CI workflow (not ideal)

let all_bits: number[] = first_64.concat(last_64);
return parseInt(all_bits.join(""), 2);
}
await circuit.expectPass( { a: a_bits, b: a_bits }, { res: expected_bit_array });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that using compute over expectPass is better for interpretability of the results and is in line with expected behavior of testing frameworks that will say something like:

test failed
expect: foo
got: bar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will probably close the pr for now since tackling the issue isn't ideal anymore

Copy link
Contributor

@thor314 thor314 Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh why not? I likeed the CI

update: I see your above comment now

@@ -30,6 +30,23 @@ export function hexToBitArray(hex: string): number[] {
);
}


export function pad_num_to_arr128(value: number): number[][] {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulling out these utility methods looks good.

@0xJepsen 0xJepsen closed this Aug 19, 2024
@0xJepsen 0xJepsen deleted the mgmul_int branch September 9, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Testing: run mocha tests in ci
3 participants