Skip to content

Commit

Permalink
Reduce numbers in tests to avoid running forever (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta authored Dec 20, 2023
1 parent ca9d891 commit ce6c68b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/alexandria.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ fn compare_inputless_function(function_name: &str) {

// alexandria_math
#[test_case("fib")]
#[test_case("karatsuba" => ignore["System out of memory"])]
#[test_case("karatsuba")]
#[test_case("armstrong_number")]
#[test_case("aliquot_sum" => ignore["System out of memory"])]
#[test_case("aliquot_sum")]
#[test_case("collatz_sequence" => ignore["Result mismatch"])]
#[test_case("extended_euclidean_algorithm")]
// alexandria_data_structures
Expand Down
4 changes: 2 additions & 2 deletions tests/alexandria/src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ mod alexandria {
}

fn karatsuba() -> u128 {
alexandria_math::karatsuba::multiply(3754192357923759273591, 18492875)
alexandria_math::karatsuba::multiply(711, 1849)
}

fn armstrong_number() -> bool {
alexandria_math::armstrong_number::is_armstrong_number(472587892687682)
}

fn aliquot_sum() -> u128 {
alexandria_math::aliquot_sum::aliquot_sum(67472587892687682)
alexandria_math::aliquot_sum::aliquot_sum(674725)
}

fn collatz_sequence() -> Array<u128> {
Expand Down

0 comments on commit ce6c68b

Please sign in to comment.