X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/f212d116773ee38f4e8a6b18c3aaa3869472de7b..942f0abd4b0931acad2d3def58cb7273ace15e2a:/workspace/src/part08.rs?ds=sidebyside diff --git a/workspace/src/part08.rs b/workspace/src/part08.rs index 61f665f..1fac150 100644 --- a/workspace/src/part08.rs +++ b/workspace/src/part08.rs @@ -76,7 +76,9 @@ impl<'a, 'b> ops::Add<&'a BigInt> for &'b BigInt { // Rust calls a bunch of definitions that are grouped together a *module*. You can put the tests in a submodule as follows. #[cfg(test)] mod tests { - #[test] + use part05::BigInt; + + /*#[test]*/ fn test_add() { let b1 = BigInt::new(1 << 32); let b2 = BigInt::from_vec(vec![0, 1]);