Skip to content

Commit f0f279f

Browse files
update CHANGELOG.md
1 parent 240563f commit f0f279f

2 files changed

Lines changed: 4 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ Both branches support Stwo prover opcodes (Blake2s, QM31) since v2.0.0.
1313
#### Upcoming Changes
1414
* feat: add `test_helpers` module (`error_utils`, `test_utils`) with `assert_mr_eq!`, `load_cairo_program!` macros and `expect_*` error checkers, behind `test_utils` feature flag [#2381](https://github.com/starkware-libs/cairo-vm/pull/2381)
1515

16-
* refactor: add `CairoFunctionRunner` type alias for `CairoRunner` under the `test_utils` feature flag [#2377](https://github.com/starkware-libs/cairo-vm/pull/2377)
17-
* feat: add `test_helpers` module (`error_utils`, `test_utils`) with `assert_mr_eq!`, `load_cairo_program!` macros and `expect_*` error checkers, behind `test_utils` feature flag [#2378](https://github.com/starkware-libs/cairo-vm/pull/2378)
18-
1916
* feat(makefile,ci): add `cairo_test_suite_programs` Makefile target and CI integration to compile Cairo test suite programs before running tests [#2380](https://github.com/starkware-libs/cairo-vm/pull/2380)
17+
2018
* feat: add math Cairo test suite under `vm/src/tests/cairo_test_suite` using the `test_utils` feature flag [#2379](https://github.com/starkware-libs/cairo-vm/pull/2379)
2119

2220
* Add Stwo cairo runner API [#2351](https://github.com/lambdaclass/cairo-vm/pull/2351)

vm/src/tests/cairo_test_suite/test_math/test_math_cairo.rs

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,7 @@ fn test_assert_lt_felt(
355355
// Case: value_case=-RC_BOUND
356356
// Expected: Error.
357357
#[case(-BigInt::from(RC_BOUND.clone()), expect_hint_value_outside_valid_range)]
358-
fn test_abs_value(
359-
mut runner: CairoRunner,
360-
#[case] value_case: BigInt,
361-
#[case] check: VmCheck<()>,
362-
) {
358+
fn test_abs_value(mut runner: CairoRunner, #[case] value_case: BigInt, #[case] check: VmCheck<()>) {
363359
let rc_base = runner
364360
.get_builtin_base(BuiltinName::range_check)
365361
.expect("range_check builtin not found");
@@ -398,11 +394,7 @@ fn test_abs_value(
398394
// Case: value_case=-RC_BOUND
399395
// Expected: Error.
400396
#[case(-BigInt::from(RC_BOUND.clone()), expect_hint_value_outside_valid_range)]
401-
fn test_sign(
402-
mut runner: CairoRunner,
403-
#[case] value_case: BigInt,
404-
#[case] check: VmCheck<()>,
405-
) {
397+
fn test_sign(mut runner: CairoRunner, #[case] value_case: BigInt, #[case] check: VmCheck<()>) {
406398
let rc_base = runner
407399
.get_builtin_base(BuiltinName::range_check)
408400
.expect("range_check builtin not found");
@@ -848,11 +840,7 @@ fn test_split_int(
848840
Some(&*CAIRO_PRIME - BigUint::one()),
849841
expect_hint_value_outside_250_bit_range
850842
)]
851-
fn test_sqrt(
852-
mut runner: CairoRunner,
853-
#[case] value: Option<BigUint>,
854-
#[case] check: VmCheck<()>,
855-
) {
843+
fn test_sqrt(mut runner: CairoRunner, #[case] value: Option<BigUint>, #[case] check: VmCheck<()>) {
856844
let value = value.unwrap_or_else(|| {
857845
let mut rng = thread_rng();
858846
let upper = BigUint::from(2u64).pow(250);

0 commit comments

Comments
 (0)