From ce6c68bba824a161cc72642458d88e674b386827 Mon Sep 17 00:00:00 2001 From: fmoletta <99273364+fmoletta@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:35:31 +0200 Subject: [PATCH] Reduce numbers in tests to avoid running forever (#402) --- tests/alexandria.rs | 4 ++-- tests/alexandria/src/lib.cairo | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/alexandria.rs b/tests/alexandria.rs index 12d9b7d62..00d4bb4db 100644 --- a/tests/alexandria.rs +++ b/tests/alexandria.rs @@ -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 diff --git a/tests/alexandria/src/lib.cairo b/tests/alexandria/src/lib.cairo index 22a5f91a2..c2f6f3946 100644 --- a/tests/alexandria/src/lib.cairo +++ b/tests/alexandria/src/lib.cairo @@ -6,7 +6,7 @@ mod alexandria { } fn karatsuba() -> u128 { - alexandria_math::karatsuba::multiply(3754192357923759273591, 18492875) + alexandria_math::karatsuba::multiply(711, 1849) } fn armstrong_number() -> bool { @@ -14,7 +14,7 @@ mod alexandria { } fn aliquot_sum() -> u128 { - alexandria_math::aliquot_sum::aliquot_sum(67472587892687682) + alexandria_math::aliquot_sum::aliquot_sum(674725) } fn collatz_sequence() -> Array {