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

Add integration test for interactions #9

Merged
merged 3 commits into from
May 13, 2024

Conversation

nyunyunyunyu
Copy link
Contributor

@nyunyunyunyu nyunyunyunyu commented May 9, 2024

  • Update rust version to nightly-2024-05-01 from stable to use an experimental feature(upcasting).
  • Add DummyInteractionAir in tests for testing.
  • Derive Eq for VerificationError to make testing easier.

@nyunyunyunyu nyunyunyunyu force-pushed the test/add-interaction-test branch from 56c84c0 to 6a1905f Compare May 10, 2024 22:14
@nyunyunyunyu nyunyunyunyu marked this pull request as ready for review May 10, 2024 22:15
trace_data: &proven_trace,
airs: airs
.iter()
.map(|&air| air as &dyn ProverRap<StarkConfigPoseidon2>)
Copy link
Contributor

Choose a reason for hiding this comment

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

fancy

Copy link
Contributor

@jonathanpwang jonathanpwang left a comment

Choose a reason for hiding this comment

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

Nice tests, thanks for being thorough.

Only nit is to add column-to-index mapping if you feel it'd help readability.

use p3_field::Field;
use p3_matrix::dense::RowMajorMatrix;

pub struct DummyInteractionAir {
Copy link
Contributor

Choose a reason for hiding this comment

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

Side note: this is general enough that we should move it into the sdk once it exists, as a general chip testing util

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Keep it here for now. Other tests can still use it.

@nyunyunyunyu nyunyunyunyu merged commit c18a34a into main May 13, 2024
3 checks passed
@nyunyunyunyu nyunyunyunyu deleted the test/add-interaction-test branch May 13, 2024 21:00
luffykai pushed a commit that referenced this pull request Dec 13, 2024
* Add integration test for interactions

* Add more test cases

* Readability improvement
Avaneesh-axiom pushed a commit that referenced this pull request Jan 10, 2025
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.

3 participants