Factorial doesn't work

Author: Arg128Created Sep 12, 2026Updated Sep 12, 2026
  • If I try with 'cargo test .' this works.
  • But with wr --verbose this showns

... ⏩ (02) basic_calculator - (05) factorial (Not rechecked) Finished devprofile [unoptimized + debuginfo] target(s) in 0.01s Finishedtest` profile [unoptimized + debuginfo] target(s) in 0.01s Running unittests src/lib.rs (/home/arglnx/Documentos/TO/Rust/100-exercises-to-learn-rust/target/debug/deps/while_-9c56142af91ec921)

running 4 tests test tests::fifth ... FAILED test tests::first ... FAILED test tests::second ... FAILED test tests::third has been running for over 60 seconds `

Source: mainmatter/100-exercises-to-learn-rust