-
Notifications
You must be signed in to change notification settings - Fork 2
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
mocha in CI #51
Conversation
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 }); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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[][] { |
There was a problem hiding this comment.
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.
Closes #50