-
Notifications
You must be signed in to change notification settings - Fork 52
test(starknet_os): add small fft regression test #4895
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
test(starknet_os): add small fft regression test #4895
Conversation
e9d56df
to
78b09a5
Compare
709dfcd
to
ca43c91
Compare
78b09a5
to
5ba1035
Compare
ca43c91
to
3a26702
Compare
Were these taken from somewhere, or did you compute them? Code quote: let expected_eval: Vec<BigInt> = (if bit_reversed { [6, 15, 9, 4] } else { [6, 9, 15, 4] }) |
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.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @amosStarkware, @dorimedini-starkware, and @nimrod-starkware)
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @amosStarkware, @aner-starkware, and @nimrod-starkware)
crates/starknet_os/src/hints/hint_implementation/kzg/test.rs
line 29 at r1 (raw file):
Previously, aner-starkware wrote…
Were these taken from somewhere, or did you compute them?
I ran the code before PR 4896 to get the values, then used this test to find the bug in 4896. I assumed that if (a) the logic was copied from moonsong and (b) I didn't refactor yet, the values I get are correct.
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.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @amosStarkware and @nimrod-starkware)
crates/starknet_os/src/hints/hint_implementation/kzg/test.rs
line 29 at r1 (raw file):
Previously, dorimedini-starkware wrote…
I ran the code before PR 4896 to get the values, then used this test to find the bug in 4896. I assumed that if (a) the logic was copied from moonsong and (b) I didn't refactor yet, the values I get are correct.
Maybe consider copying the naive computation from the test_fft
instead? (Or even better, make it a fn
and call it).
I can't say I'm a fan of magic numbers that come from nowhere, but unblocking.
5ba1035
to
0a037e7
Compare
3a26702
to
7ad00f3
Compare
0a037e7
to
6d3ce17
Compare
7ad00f3
to
0ef3174
Compare
6d3ce17
to
b75afc4
Compare
0ef3174
to
f8b646f
Compare
b75afc4
to
8eb8647
Compare
f8b646f
to
ebb35c0
Compare
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.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @amosStarkware, @aner-starkware, and @nimrod-starkware)
crates/starknet_os/src/hints/hint_implementation/kzg/test.rs
line 29 at r1 (raw file):
Previously, aner-starkware wrote…
Maybe consider copying the naive computation from the
test_fft
instead? (Or even better, make it afn
and call it).
I can't say I'm a fan of magic numbers that come from nowhere, but unblocking.
the point of the small_fft_regression
test is to not copy test_fft
, as it generates huge input/output pairs that are unusable for debugging.
test_fft is still a good test for the change I made
8eb8647
to
bc1a882
Compare
ebb35c0
to
91d2ce9
Compare
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.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @amosStarkware and @nimrod-starkware)
bc1a882
to
5e305dd
Compare
91d2ce9
to
253eb33
Compare
5e305dd
to
e7ab684
Compare
253eb33
to
cc37a9d
Compare
e7ab684
to
2184e84
Compare
cc37a9d
to
1303cb3
Compare
2184e84
to
ac22bc5
Compare
1303cb3
to
0ebecdd
Compare
Signed-off-by: Dori Medini <dori@starkware.co>
…ctly outputs felts Signed-off-by: Dori Medini <dori@starkware.co>
ac22bc5
to
b7449ea
Compare
0ebecdd
to
8d7cdbf
Compare
No description provided.