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

Feature: make test_utils macros public #1599

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
* Add instructions to the proof_mode header to copy return values to the output segment before initiating the infinite loop
* Output builtin is now always included when running cairo 1 programs in proof_mode

* feat: Make test_utils macros public [#1599](https://github.com/lambdaclass/cairo-vm/pull/1599).

* feat(BREAKING): Remove unecessary conversion functions between `Felt` & `BigUint`/`BigInt` [#1562](https://github.com/lambdaclass/cairo-vm/pull/1562)
* Remove the following functions:
* felt_from_biguint
Expand Down
1 change: 1 addition & 0 deletions vm/src/hint_processor/builtin_hint_processor/bigint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ mod test {
use crate::hint_processor::hint_processor_definition::{HintProcessorLogic, HintReference};
use crate::stdlib::collections::HashMap;
use crate::types::exec_scope::ExecutionScopes;
use crate::utils::test_utils::bigint::*;
use crate::utils::test_utils::*;
use crate::vm::vm_core::VirtualMachine;
use assert_matches::assert_matches;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ mod tests {
use crate::{any_box, felt_str};

use crate::types::relocatable::Relocatable;
use crate::utils::test_utils::bigint::*;
use crate::utils::test_utils::*;

use crate::vm::vm_core::VirtualMachine;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ mod tests {
hint_processor_definition::HintProcessorLogic,
},
types::{exec_scope::ExecutionScopes, relocatable::Relocatable},
utils::test_utils::bigint::*,
utils::test_utils::*,
vm::vm_core::VirtualMachine,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ mod tests {
exec_scope::ExecutionScopes,
relocatable::{MaybeRelocatable, Relocatable},
},
utils::test_utils::bigint::*,
utils::test_utils::*,
vm::errors::memory_errors::MemoryError,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ mod tests {
use super::*;

use crate::stdlib::{collections::HashMap, string::ToString};
use crate::utils::test_utils::*;
use crate::utils::test_utils::bigint::*;
use assert_matches::assert_matches;
use num_bigint::BigUint;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ mod tests {
hint_processor_definition::HintProcessorLogic,
},
types::exec_scope::ExecutionScopes,
utils::test_utils::bigint::*,
utils::test_utils::*,
};
use assert_matches::assert_matches;
Expand Down
1 change: 1 addition & 0 deletions vm/src/math_utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ pub(crate) fn is_quad_residue(a: &BigUint, p: &BigUint) -> Result<bool, MathErro
#[cfg(test)]
mod tests {
use super::*;
use crate::utils::test_utils::bigint::*;
use crate::utils::test_utils::*;
use crate::utils::CAIRO_PRIME;
use assert_matches::assert_matches;
Expand Down
Loading