From dca33e38e9c8848863b1f50386cb3718463d7499 Mon Sep 17 00:00:00 2001 From: kingdoctor123 Date: Tue, 26 Mar 2024 14:32:59 +0900 Subject: [PATCH] Weaken testcases of boc --- homework/tests/boc.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homework/tests/boc.rs b/homework/tests/boc.rs index 361963d6e1..360baa9a46 100644 --- a/homework/tests/boc.rs +++ b/homework/tests/boc.rs @@ -394,7 +394,7 @@ mod stress_test { let (send_finish, recv_finish) = bounded(0); rayon::spawn(move || { - assert_eq!(boc_fibonacci::fibonacci(30), 832040); + assert_eq!(boc_fibonacci::fibonacci(28), 317811); send_finish.send(()).unwrap(); }); @@ -415,9 +415,9 @@ mod stress_test { #[test] fn merge_sort() { - const ITER: usize = 10; + const ITER: usize = 4; const LOGSZ_LO: usize = 10; - const LOGSZ_HI: usize = 14; + const LOGSZ_HI: usize = 13; let (senders, receivers): (Vec>, Vec>) = (0..ITER).map(|_| bounded(1)).unzip();